[MPlayer-cvslog] r36251 - trunk/gui/util/list.c
ib
subversion at mplayerhq.hu
Wed May 8 14:39:56 CEST 2013
Author: ib
Date: Wed May 8 14:39:56 2013
New Revision: 36251
Log:
Fix resource leak.
Modified:
trunk/gui/util/list.c
Modified: trunk/gui/util/list.c
==============================================================================
--- trunk/gui/util/list.c Wed May 8 14:37:28 2013 (r36250)
+++ trunk/gui/util/list.c Wed May 8 14:39:56 2013 (r36251)
@@ -367,8 +367,10 @@ int add_to_gui_playlist(const char *what
item = calloc(1, sizeof(plItem));
- if (!item)
+ if (!item) {
+ free(path);
return False;
+ }
mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[list] adding %s/%s\n", path, file);
More information about the MPlayer-cvslog
mailing list