incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhan...@apache.org
Subject svn commit: r1351355 - /incubator/ooo/trunk/main/editeng/source/editeng/editobj.cxx
Date Mon, 18 Jun 2012 14:14:18 GMT
Author: zhangjf
Date: Mon Jun 18 14:14:17 2012
New Revision: 1351355

URL: http://svn.apache.org/viewvc?rev=1351355&view=rev
Log:
#119992#, memory leak, to release pWrongs cloned from rCopyFrom

Patch by: Huang Chao
Review by: zhangjf

Modified:
    incubator/ooo/trunk/main/editeng/source/editeng/editobj.cxx

Modified: incubator/ooo/trunk/main/editeng/source/editeng/editobj.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/editeng/source/editeng/editobj.cxx?rev=1351355&r1=1351354&r2=1351355&view=diff
==============================================================================
--- incubator/ooo/trunk/main/editeng/source/editeng/editobj.cxx (original)
+++ incubator/ooo/trunk/main/editeng/source/editeng/editobj.cxx Mon Jun 18 14:14:17 2012
@@ -211,6 +211,10 @@ ContentInfo::ContentInfo( const ContentI
 		aAttribs.Insert( pMyAttr, aAttribs.Count()  );
 	}
 
+	// memory leak #119992: to release pWrongs cloned from rCopyFrom
+	if (pWrongs != NULL)
+		delete pWrongs;
+
 	// Wrongs
 	pWrongs = NULL;
 #ifndef SVX_LIGHT



Mime
View raw message