incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1351632 - /incubator/ooo/trunk/main/svtools/source/misc/embedhlp.cxx
Date Tue, 19 Jun 2012 09:58:58 GMT
Author: hdu
Date: Tue Jun 19 09:58:58 2012
New Revision: 1351632

URL: http://svn.apache.org/viewvc?rev=1351632&view=rev
Log:
#i120019# memory leak in EmbeddedObjectRef::~EmbeddedObjectRef()

Patch by: Chao Huang
Found by: Chao Huang
Review by: Herbert Duerr

Modified:
    incubator/ooo/trunk/main/svtools/source/misc/embedhlp.cxx

Modified: incubator/ooo/trunk/main/svtools/source/misc/embedhlp.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svtools/source/misc/embedhlp.cxx?rev=1351632&r1=1351631&r2=1351632&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svtools/source/misc/embedhlp.cxx (original)
+++ incubator/ooo/trunk/main/svtools/source/misc/embedhlp.cxx Tue Jun 19 09:58:58 2012
@@ -303,6 +303,7 @@ EmbeddedObjectRef::~EmbeddedObjectRef()
 	if ( mpImp->pHCGraphic ) 
         DELETEZ( mpImp->pHCGraphic );
     Clear();
+    delete mpImp;
 }
 /*
 EmbeddedObjectRef& EmbeddedObjectRef::operator = ( const EmbeddedObjectRef& rObj
)



Mime
View raw message