[Libreoffice-commits] core.git: svx/source
Julien Nabet
serval2412 at yahoo.fr
Thu Feb 5 12:09:22 PST 2015
svx/source/gallery2/galtheme.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit c20a2234c5cb9cb89611de8a8a34e9d1e7c7a972
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Thu Feb 5 20:10:37 2015 +0100
cppcheck: Returning/dereferencing 'pEntry' after it is deallocated / released
Change-Id: If96b66d5bbfcf4426bb602909599cd36e1f3c994
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index 7abdc6d..2bf184f 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -477,6 +477,7 @@ bool GalleryTheme::RemoveObject( size_t nPos )
Broadcast( GalleryHint( GALLERY_HINT_CLOSE_OBJECT, GetName(), reinterpret_cast< sal_uIntPtr >( pEntry ) ) );
Broadcast( GalleryHint( GALLERY_HINT_OBJECT_REMOVED, GetName(), reinterpret_cast< sal_uIntPtr >( pEntry ) ) );
delete pEntry;
+ pEntry = NULL;
ImplSetModified( true );
ImplBroadcast( nPos );
More information about the Libreoffice-commits
mailing list