svx/source/gallery2/galtheme.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 7153844e964f1e8895d6ac7b202147729ede997d
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Thu Feb 5 20:10:37 2015 +0100

    cppcheck: Returning/dereferencing 'pEntry' after it is deallocated / 
released
    
    Cherry-picked from c20a2234c5cb9cb89611de8a8a34e9d1e7c7a972
    
    Change-Id: If96b66d5bbfcf4426bb602909599cd36e1f3c994
    Reviewed-on: https://gerrit.libreoffice.org/14350
    Tested-by: Michael Stahl <mst...@redhat.com>
    Reviewed-by: Michael Stahl <mst...@redhat.com>

diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index cf64448..90f734d 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -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_OBJECT_REMOVED, GetName(), 
reinterpret_cast< sal_uIntPtr >( pEntry ) ) );
         delete pEntry;
+        pEntry = NULL;
 
         ImplSetModified( true );
         ImplBroadcast( nPos );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to