incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1350290 - /incubator/ooo/trunk/main/sd/source/ui/app/optsitem.cxx
Date Thu, 14 Jun 2012 15:16:16 GMT
Author: hdu
Date: Thu Jun 14 15:16:15 2012
New Revision: 1350290

URL: http://svn.apache.org/viewvc?rev=1350290&view=rev
Log:
#c708912# fix a double free in Sd*Options

Modified:
    incubator/ooo/trunk/main/sd/source/ui/app/optsitem.cxx

Modified: incubator/ooo/trunk/main/sd/source/ui/app/optsitem.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sd/source/ui/app/optsitem.cxx?rev=1350290&r1=1350289&r2=1350290&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sd/source/ui/app/optsitem.cxx (original)
+++ incubator/ooo/trunk/main/sd/source/ui/app/optsitem.cxx Thu Jun 14 15:16:15 2012
@@ -145,8 +145,8 @@ void SdOptionsGeneric::Init() const
 
 SdOptionsGeneric::~SdOptionsGeneric()
 {
-	if( mpCfgItem )
-		delete mpCfgItem;
+	delete mpCfgItem;
+	mpCfgItem = NULL;
 }
 
 // -----------------------------------------------------------------------------



Mime
View raw message