incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhan...@apache.org
Subject svn commit: r1382643 - /incubator/ooo/trunk/main/editeng/source/editeng/editdoc.cxx
Date Mon, 10 Sep 2012 05:34:10 GMT
Author: zhangjf
Date: Mon Sep 10 05:34:10 2012
New Revision: 1382643

URL: http://svn.apache.org/viewvc?rev=1382643&view=rev
Log:
#i120865#, Need to free the EditAttrib object explictly after removing it from CharAttribList


Found by: zhangjf 
Patch by: zhangjf

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

Modified: incubator/ooo/trunk/main/editeng/source/editeng/editdoc.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/editeng/source/editeng/editdoc.cxx?rev=1382643&r1=1382642&r2=1382643&view=diff
==============================================================================
--- incubator/ooo/trunk/main/editeng/source/editeng/editdoc.cxx (original)
+++ incubator/ooo/trunk/main/editeng/source/editeng/editdoc.cxx Mon Sep 10 05:34:10 2012
@@ -1817,6 +1817,7 @@ void EditDoc::InsertAttrib( ContentNode*
 			// Attribut entfernen....
 			pNode->GetCharAttribs().GetAttribs().Remove(
 				pNode->GetCharAttribs().GetAttribs().GetPos( pAttr ) );
+                        delete pAttr; // #i120865#, need free it explicitly
 		}
 
 		// pruefen, ob ein 'gleiches' Attribut an der Stelle liegt.



Mime
View raw message