Don't leak picture_t
[vlc.git] / 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 );
+        else free( p_pic );
     }
     if( p_fmt )
     {