Kaydet (Commit) 62c52142 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Fridrich Strba

coverity#708921: Use after free

Change-Id: I446fa717dfd11fc5d6045cb1e8dc3eaf8861262e
Reviewed-on: https://gerrit.libreoffice.org/2738Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst b1231b5e
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment