Commit 4c8fb0de authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix psz_userdir memleak

(patch contributed by Brian Robb)
parent 5c834978
......@@ -21,7 +21,7 @@ Benjamin Mironer <bmironer at noos.fr> - Mac OS X fixes
Benoit Steiner <benny at via.ecp.fr> - MPEG system input, network input
Bill Eldridge <bill at rfa.org> - documentation
Bob Maguire <maguirer at rjmaguire dot com> - addition of some controls to the OSX interface
Brian Robb <vascy at hotmail dot com> - win32 CD/DVD drive detection in wx
Brian Robb <vascy at hotmail dot com> - win32 CD/DVD drive detection in wx, bug fixes
Brieuc Jeunhomme <bbp at via.ecp.fr> - bug fixes
Bruno Vella <allevb at tin.it> - Italian localization
Carlo Calabr <murray at via.ecp.fr> - Italian localization
......
......@@ -988,6 +988,12 @@ int VLC_Destroy( int i_object )
p_vlc->psz_homedir = NULL;
}
if( p_vlc->psz_userdir )
{
free( p_vlc->psz_userdir );
p_vlc->psz_userdir = NULL;
}
if( p_vlc->psz_configfile )
{
free( p_vlc->psz_configfile );
......
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