[MPlayer-cvslog] r35454 - trunk/gui/skin/skin.c
ib
subversion at mplayerhq.hu
Fri Nov 23 11:31:07 CET 2012
Author: ib
Date: Fri Nov 23 11:31:07 2012
New Revision: 35454
Log:
Close the skin file after reading.
Modified:
trunk/gui/skin/skin.c
Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c Fri Nov 23 11:24:10 2012 (r35453)
+++ trunk/gui/skin/skin.c Fri Nov 23 11:31:07 2012 (r35454)
@@ -1074,19 +1074,23 @@ int skinRead(char *sname)
for (i = 0; i < FF_ARRAY_ELEMS(skinItem); i++) {
if (!strcmp(item, skinItem[i].name)) {
- if (skinItem[i].func(param) != 0)
+ if (skinItem[i].func(param) != 0) {
+ fclose(skinfile);
return -2;
- else
+ } else
break;
}
}
if (i == FF_ARRAY_ELEMS(skinItem)) {
skin_error(MSGTR_SKIN_UNKNOWN_ITEM, item);
+ fclose(skinfile);
return -2;
}
}
+ fclose(skinfile);
+
if (linenumber == 0) {
mp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_SKIN_SkinFileNotReadable, skinfname);
return -1;
More information about the MPlayer-cvslog
mailing list