[vlc-devel] commit: Fix memleak in wall video filter. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 31 13:29:45 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 31 13:26:51 2008 +0200| [a17ea14f8d07adb79f201aec47170c2892d5f6e8]

Fix memleak in wall video filter.

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

 modules/video_filter/wall.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/video_filter/wall.c b/modules/video_filter/wall.c
index 6db6d57..39ddd82 100644
--- a/modules/video_filter/wall.c
+++ b/modules/video_filter/wall.c
@@ -266,8 +266,8 @@ static int Init( vout_thread_t *p_vout )
         {
             msg_Warn( p_vout, "invalid aspect ratio specification" );
         }
-        free( psz_aspect );
     }
+    free( psz_aspect );
 
     i_xpos = var_CreateGetInteger( p_vout, "video-x" );
     i_ypos = var_CreateGetInteger( p_vout, "video-y" );




More information about the vlc-devel mailing list