]> git.sesse.net Git - vlc/commitdiff
Fix image handler leak. (CID 102)
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 30 May 2008 12:42:26 +0000 (14:42 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 30 May 2008 12:42:26 +0000 (14:42 +0200)
src/video_output/vout_intf.c

index 9103b22a3c5335972670144efe16db4a2852f219..c5270dfe84d8048ff972257131ec264fc2319f5d 100644 (file)
@@ -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 );