]> git.sesse.net Git - vlc/commitdiff
minor memleak fixes
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sun, 17 Apr 2005 12:58:33 +0000 (12:58 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sun, 17 Apr 2005 12:58:33 +0000 (12:58 +0000)
src/libvlc.c
src/misc/messages.c

index fde02c25202a88aea1ef29f0e2ac739266c9f982..53679585cc7eaa623c9377996390fe2b56d52dc4 100644 (file)
@@ -2362,6 +2362,7 @@ static void InitDeviceValues( vlc_t *p_vlc )
 
                 hal_free_string( block_dev );
             }
+            hal_free_string_array( devices );
         }
 
         hal_shutdown( ctx );
index 1ff74c6f76adcbdaa186a0e2127c3b8a66885b6a..80ddb1e6385392bb29d240155cd3459d8c13dd86 100644 (file)
@@ -209,6 +209,8 @@ void __msg_Unsubscribe( vlc_object_t *p_this, msg_subscription_t *p_sub )
     /* Remove this subscription */
     REMOVE_ELEM( p_bank->pp_sub, p_bank->i_sub, i_index );
 
+    free( p_sub );
+
     vlc_mutex_unlock( &p_bank->lock );
 }