]> git.sesse.net Git - vlc/commitdiff
Fixed a picture memleak in wall.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 7 Jun 2009 21:15:38 +0000 (23:15 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 9 Jun 2009 17:57:58 +0000 (19:57 +0200)
modules/video_filter/wall.c

index d6a73a3d4e64eb901cc3825a24cafbd3aaebc700..264107f62bdc853c00abb5e9044a05ad99eabf6b 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <vlc_common.h>
 #include <vlc_plugin.h>
-#include "vlc_video_splitter.h"
+#include <vlc_video_splitter.h>
 
 /* FIXME it is needed for VOUT_ALIGN_* only */
 #include <vlc_vout.h>
@@ -384,7 +384,10 @@ static int Filter( video_splitter_t *p_splitter, picture_t *pp_dst[], picture_t
     video_splitter_sys_t *p_sys = p_splitter->p_sys;
 
     if( video_splitter_NewPicture( p_splitter, pp_dst ) )
+    {
+        picture_Release( p_src );
         return VLC_EGENERIC;
+    }
 
     for( int y = 0; y < p_sys->i_row; y++ )
     {