Kaydet (Commit) c20a2234 authored tarafından Julien Nabet's avatar Julien Nabet

cppcheck: Returning/dereferencing 'pEntry' after it is deallocated / released

Change-Id: If96b66d5bbfcf4426bb602909599cd36e1f3c994
üst 101ea2fe
...@@ -477,6 +477,7 @@ bool GalleryTheme::RemoveObject( size_t nPos ) ...@@ -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_CLOSE_OBJECT, GetName(), reinterpret_cast< sal_uIntPtr >( pEntry ) ) );
Broadcast( GalleryHint( GALLERY_HINT_OBJECT_REMOVED, GetName(), reinterpret_cast< sal_uIntPtr >( pEntry ) ) ); Broadcast( GalleryHint( GALLERY_HINT_OBJECT_REMOVED, GetName(), reinterpret_cast< sal_uIntPtr >( pEntry ) ) );
delete pEntry; delete pEntry;
pEntry = NULL;
ImplSetModified( true ); ImplSetModified( true );
ImplBroadcast( nPos ); ImplBroadcast( nPos );
......
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