summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-15 07:38:23 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-15 07:09:36 +0000
commit62c5214272035f6c597a4c7636a8fe2e15ceede3 (patch)
treee8fc309b62376c337a809fcde6057873f0adda13
parentb1231b5ed214d449347d69bc3d29616377655d20 (diff)
coverity#708921: Use after free
Change-Id: I446fa717dfd11fc5d6045cb1e8dc3eaf8861262e Reviewed-on: https://gerrit.libreoffice.org/2738 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r--svx/source/gallery2/galtheme.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index 3db3a8a88964..0afd03ec8192 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -87,8 +87,8 @@ GalleryTheme::~GalleryTheme()
{
GalleryObject* pEntry = aObjectList[ i ];
Broadcast( GalleryHint( GALLERY_HINT_CLOSE_OBJECT, GetName(), reinterpret_cast< sal_uIntPtr >( pEntry ) ) );
- delete pEntry;
Broadcast( GalleryHint( GALLERY_HINT_OBJECT_REMOVED, GetName(), reinterpret_cast< sal_uIntPtr >( pEntry ) ) );
+ delete pEntry;
}
aObjectList.clear();