# HG changeset patch # User ib # Date 1310382606 0 # Node ID a450fade6a83f8c0a382d69e231020aecc944010 # Parent 896b427e598e83c92390709eb7515e42bf3bea3b Fix memory leaks in the Win32 GUI. This closes Bugzilla #1312. diff -r 896b427e598e -r a450fade6a83 gui/win32/skinload.c --- a/gui/win32/skinload.c Mon Jul 11 10:39:55 2011 +0000 +++ b/gui/win32/skinload.c Mon Jul 11 11:10:06 2011 +0000 @@ -513,6 +513,9 @@ 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 @@ { 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; }