[vlc-devel] commit: Fix memleak and config option type. (thanks to ivoire and xtophe) ( Antoine Cellerier )

git version control git at videolan.org
Thu Sep 4 18:12:25 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Thu Sep  4 18:15:16 2008 +0200| [629c2b3839fd7851d3c9e630d1127f464b0f247b] | committer: Antoine Cellerier 

Fix memleak and config option type. (thanks to ivoire and xtophe)

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

 modules/access/screen/screen.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/access/screen/screen.c b/modules/access/screen/screen.c
index 3cb984e..97a8af2 100644
--- a/modules/access/screen/screen.c
+++ b/modules/access/screen/screen.c
@@ -109,8 +109,8 @@ vlc_module_begin();
 #endif
 
 #ifdef SCREEN_MOUSE
-    add_string( "screen-mouse-image", "", NULL, MOUSE_TEXT, MOUSE_LONGTEXT,
-                true );
+    add_file( "screen-mouse-image", "", NULL, MOUSE_TEXT, MOUSE_LONGTEXT,
+              true );
 #endif
 
 #ifdef WIN32
@@ -222,6 +222,7 @@ static int Open( vlc_object_t *p_this )
         if( !p_sys->p_mouse )
             msg_Err( p_demux, "Failed to open mouse pointer image (%s)",
                      psz_mouse );
+        free( psz_mouse );
     }
 #endif
 




More information about the vlc-devel mailing list