From e799a47983c6e9f0ff312124ebf8fbea1e336b66 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 16 Mar 2013 00:18:40 +0100 Subject: coverity#738979 Use after free Change-Id: I843556f18542ac601fd7e16c6f51218ef913de31 Reviewed-on: https://gerrit.libreoffice.org/2766 Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba --- svx/source/gallery2/galtheme.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit