You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by zh...@apache.org on 2012/09/10 07:34:10 UTC

svn commit: r1382643 - /incubator/ooo/trunk/main/editeng/source/editeng/editdoc.cxx

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.