[vlc-devel] commit: Fix image handler leak. (CID 102) (Antoine Cellerier )

git version control git at videolan.org
Fri May 30 14:40:50 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Fri May 30 14:42:26 2008 +0200| [7c9181f67bcbfc2e6a53be2c5731084722e25f33]

Fix image handler leak. (CID 102)

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

 src/video_output/vout_intf.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index 9103b22..c5270df 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -648,6 +648,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
     if( !val.psz_string )
     {
         msg_Err( p_vout, "no path specified for snapshots" );
+        image_HandlerDelete( p_image );
         return VLC_EGENERIC;
     }
     var_Get( p_vout, "snapshot-format", &format );




More information about the vlc-devel mailing list