[vlc-devel] commit: Don't leak picture_t (Jean-Paul Saman )

git version control git at videolan.org
Fri May 9 14:57:45 CEST 2008


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Fri May  9 14:58:38 2008 +0200| [cbc120de4ceb5c1ce66bb0b794f92246d7dec0b2]

Don't leak picture_t

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cbc120de4ceb5c1ce66bb0b794f92246d7dec0b2
---

 modules/gui/fbosd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/fbosd.c b/modules/gui/fbosd.c
index 2b4d5c9..6d4c4d6 100644
--- a/modules/gui/fbosd.c
+++ b/modules/gui/fbosd.c
@@ -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 )
     {




More information about the vlc-devel mailing list