]> git.sesse.net Git - vlc/commitdiff
Fix memleak and config option type. (thanks to ivoire and xtophe)
authorAntoine Cellerier <dionoea@videolan.org>
Thu, 4 Sep 2008 16:15:16 +0000 (18:15 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Thu, 4 Sep 2008 16:15:16 +0000 (18:15 +0200)
modules/access/screen/screen.c

index 3cb984e4793fc157990da5705e90e7901a590581..97a8af2ea65cf18c3e9ee3061ba1ec1ddd179e02 100644 (file)
@@ -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