[MPlayer-cvslog] r38262 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Fri Feb 26 15:55:28 EET 2021


Author: ib
Date: Fri Feb 26 15:55:28 2021
New Revision: 38262

Log:
Fix memory leak.

skinName is already set to the value of the skin selected by the user.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Fri Feb 26 15:53:00 2021	(r38261)
+++ trunk/gui/interface.c	Fri Feb 26 15:55:28 2021	(r38262)
@@ -276,7 +276,7 @@ void guiInit(void)
     if (ret == -1 && strcmp(skinName, "default") != 0) {
         mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_GUI_MSG_SkinCfgSelectedNotFound, skinName);
 
-        skinName = strdup("default");
+        setdup(&skinName, "default");
         ret      = skinRead(skinName);
     }
 


More information about the MPlayer-cvslog mailing list