]> git.sesse.net Git - vlc/blobdiff - src/win32/specific.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / src / win32 / specific.c
index 24f1a749b6cd30abab03f442b742d3a7d3878810..531e29271a6fc4dcecab4de3654ad79ddc9c2935 100644 (file)
@@ -349,7 +349,9 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
                 {
                     i_options++;
                 }
-                playlist_AddExt( p_playlist, make_URI( ppsz_argv[i_opt] ),
+
+                char *psz_URI = make_URI( ppsz_argv[i_opt], NULL );
+                playlist_AddExt( p_playlist, psz_URI,
                         NULL, PLAYLIST_APPEND |
                         ( ( i_opt || p_data->enqueue ) ? 0 : PLAYLIST_GO ),
                         PLAYLIST_END, -1,
@@ -359,6 +361,7 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
                         true, pl_Unlocked );
 
                 i_opt += i_options;
+                free( psz_URI );
             }
 
             free( ppsz_argv );