Don't leak picture_t
authorJean-Paul Saman <jpsaman@videolan.org>
Fri, 9 May 2008 12:58:38 +0000 (14:58 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 9 May 2008 12:59:03 +0000 (14:59 +0200)
modules/gui/fbosd.c

index 2b4d5c9..6d4c4d6 100644 (file)
@@ -675,6 +675,7 @@ static void DeAllocatePicture( vlc_object_t *p_this, picture_t *p_pic,
     {
         free( p_pic->p_data_orig );
         if( p_pic->pf_release ) p_pic->pf_release( p_pic );
     {
         free( p_pic->p_data_orig );
         if( p_pic->pf_release ) p_pic->pf_release( p_pic );
+        else free( p_pic );
     }
     if( p_fmt )
     {
     }
     if( p_fmt )
     {