[MPlayer-cvslog] r33871 - trunk/gui/win32/skinload.c
ib
subversion at mplayerhq.hu
Mon Jul 11 13:10:07 CEST 2011
Author: ib
Date: Mon Jul 11 13:10:06 2011
New Revision: 33871
Log:
Fix memory leaks in the Win32 GUI.
This closes Bugzilla #1312.
Modified:
trunk/gui/win32/skinload.c
Modified: trunk/gui/win32/skinload.c
==============================================================================
--- trunk/gui/win32/skinload.c Mon Jul 11 12:39:55 2011 (r33870)
+++ trunk/gui/win32/skinload.c Mon Jul 11 13:10:06 2011 (r33871)
@@ -513,6 +513,9 @@ static void loadfonts(skin_t* skin)
if(!(fp = fopen(filename,"rb")))
{
mp_msg(MSGT_GPLAYER, MSGL_ERR, "[FONT LOAD] Font not found \"%s\"\n", skin->fonts[x]->name);
+ free(tmp);
+ free(desc);
+ free(filename);
return;
}
while(!feof(fp))
@@ -603,6 +606,9 @@ skin_t* loadskin(char* skindir, int desk
{
mp_msg(MSGT_GPLAYER, MSGL_FATAL, "[SKIN LOAD] Skin \"%s\" not found\n", skindir);
skin->freeskin(skin);
+ free(tmp);
+ free(desc);
+ free(filename);
return NULL;
}
More information about the MPlayer-cvslog
mailing list