[MPlayer-cvslog] r33485 - trunk/m_config.c

ib subversion at mplayerhq.hu
Sun May 22 22:32:42 CEST 2011


Author: ib
Date: Sun May 22 22:32:42 2011
New Revision: 33485

Log:
Add missing m_option_free() to m_config_free().

When freeing a config object, free allocated memory
(to a program-accessible option variable) after freeing
the save slots of an option as well.

Modified:
   trunk/m_config.c

Modified: trunk/m_config.c
==============================================================================
--- trunk/m_config.c	Sun May 22 22:19:28 2011	(r33484)
+++ trunk/m_config.c	Sun May 22 22:32:42 2011	(r33485)
@@ -201,6 +201,8 @@ m_config_free(m_config_t* config) {
     }
     if(i->name != i->opt->name)
       free(i->name);
+    if(i->opt->p && (i->opt->type->flags & M_OPT_TYPE_DYNAMIC))
+      m_option_free(i->opt, i->opt->p);
     ct = i->next;
     free(i);
     i = ct;


More information about the MPlayer-cvslog mailing list