]> git.sesse.net Git - vlc/commitdiff
fixed the smallest and most elusive leak yet
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Tue, 31 Jan 2006 16:27:50 +0000 (16:27 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Tue, 31 Jan 2006 16:27:50 +0000 (16:27 +0000)
include/modules_inner.h

index af6e618ada07234d2770938731230e03f19d7364..c796d97cfd01d77bfdccf75ff1a580e825c851fc 100644 (file)
         }                                                                     \
         if( p_config )                                                        \
         {                                                                     \
+            int i;                                                            \
             p_config[ ++i_config ] = config_end;                              \
             config_Duplicate( p_module, p_config );                           \
+            for( i = 0; i < i_config; i++ )                                   \
+            {                                                                 \
+                if( p_config[ i ].i_action )                                  \
+                {                                                             \
+                    free( p_config[ i ].ppf_action );                         \
+                    free( p_config[ i ].ppsz_action_text );                   \
+                }                                                             \
+            }                                                                 \
             free( p_config );                                                 \
         }                                                                     \
         else config_Duplicate( p_module, &config_end );                       \