Commit 2e959033 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: fix memleak

parent 7240444d
...@@ -349,7 +349,9 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam, ...@@ -349,7 +349,9 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
{ {
i_options++; i_options++;
} }
playlist_AddExt( p_playlist, make_URI( ppsz_argv[i_opt] ),
char *psz_URI = make_URI( ppsz_argv[i_opt] );
playlist_AddExt( p_playlist, psz_URI,
NULL, PLAYLIST_APPEND | NULL, PLAYLIST_APPEND |
( ( i_opt || p_data->enqueue ) ? 0 : PLAYLIST_GO ), ( ( i_opt || p_data->enqueue ) ? 0 : PLAYLIST_GO ),
PLAYLIST_END, -1, PLAYLIST_END, -1,
...@@ -359,6 +361,7 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam, ...@@ -359,6 +361,7 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
true, pl_Unlocked ); true, pl_Unlocked );
i_opt += i_options; i_opt += i_options;
free( psz_URI );
} }
free( ppsz_argv ); free( ppsz_argv );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment