You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by pf...@apache.org on 2015/11/29 21:24:38 UTC

svn commit: r1717116 - /openoffice/trunk/main/sw/source/ui/envelp/label1.cxx

Author: pfg
Date: Sun Nov 29 20:24:38 2015
New Revision: 1717116

URL: http://svn.apache.org/viewvc?rev=1717116&view=rev
Log:
Resource Leak

CID:	705762

Modified:
    openoffice/trunk/main/sw/source/ui/envelp/label1.cxx

Modified: openoffice/trunk/main/sw/source/ui/envelp/label1.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/ui/envelp/label1.cxx?rev=1717116&r1=1717115&r2=1717116&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/ui/envelp/label1.cxx (original)
+++ openoffice/trunk/main/sw/source/ui/envelp/label1.cxx Sun Nov 29 20:24:38 2015
@@ -185,6 +185,8 @@ SwLabDlg::SwLabDlg(Window* pParent, cons
 
 	if (!bDouble)
 		pRecs->C40_INSERT( SwLabRec, pRec, 0 );
+	else
+		delete pRec;
 
 	sal_uInt16 nLstGroup = 0;
 	const UNO_NMSPC::Sequence<rtl::OUString>& rMan = aLabelsCfg.GetManufacturers();