Commit 98afd051 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: fix memleak

(cherry picked from commit 2e959033)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 73876789
......@@ -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] );
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 );
......
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