[vlc-devel] commit: directfb: fix potential memleak. ( Rémi Duraffort )

git version control git at videolan.org
Tue Mar 17 22:05:53 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Mar 17 21:40:23 2009 +0100| [1ece85a604d13f5c6236f872c80caf13893eb3b4] | committer: Rémi Duraffort 

directfb: fix potential memleak.

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

 modules/video_output/directfb.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/directfb.c b/modules/video_output/directfb.c
index 5d31d80..dce0dfa 100644
--- a/modules/video_output/directfb.c
+++ b/modules/video_output/directfb.c
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * directfb.c: DirectFB video output display method
  *****************************************************************************
- * Copyright (C) 2005 the VideoLAN team
+ * Copyright (C) 2005-2009 the VideoLAN team
  *
  * Authors: Iuri Diniz <iuri at digizap.com.br>
  *
@@ -101,6 +101,7 @@ static int Create( vlc_object_t *p_this )
     if( DirectFBInit(NULL,NULL) != DFB_OK )
     {
         msg_Err(p_vout, "Cannot init DirectFB");
+        free( p_sys );
         return VLC_EGENERIC;
     }
 




More information about the vlc-devel mailing list