summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-16 00:18:40 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-15 23:28:30 +0000
commite799a47983c6e9f0ff312124ebf8fbea1e336b66 (patch)
tree005b476bffb080118e4174d170ac84d54e46e09c /svx
parent1ce6d6d4133865d9616e12228be2c04cbba1976c (diff)
coverity#738979 Use after free
Change-Id: I843556f18542ac601fd7e16c6f51218ef913de31 Reviewed-on: https://gerrit.libreoffice.org/2766 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'svx')
-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 0afd03ec8192..952898b9cf22 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -604,11 +604,11 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg
if( pEntry->bDummy )
{
Broadcast( GalleryHint( GALLERY_HINT_CLOSE_OBJECT, GetName(), reinterpret_cast< sal_uIntPtr >( pEntry ) ) );
+ Broadcast( GalleryHint( GALLERY_HINT_OBJECT_REMOVED, GetName(), reinterpret_cast< sal_uLong >( pEntry ) ) );
GalleryObjectList::iterator it = aObjectList.begin();
::std::advance( it, i );
aObjectList.erase( it );
delete pEntry;
- Broadcast( GalleryHint( GALLERY_HINT_OBJECT_REMOVED, GetName(), reinterpret_cast< sal_uLong >( pEntry ) ) );
}
else ++i;
}