]> git.sesse.net Git - vlc/blobdiff - src/libvlc-common.c
A bit of cleanup and test
[vlc] / src / libvlc-common.c
index 01c235b44dca83fb4847df25b1a8a8ffed874400..05d967ad30b88ad1c754e1f727e2f623a276d93f 100644 (file)
@@ -868,14 +868,13 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
  */
 int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, vlc_bool_t b_release )
 {
-    /* Free allocated memory */
     if( p_libvlc->p_memcpy_module )
     {
         module_Unneed( p_libvlc, p_libvlc->p_memcpy_module );
         p_libvlc->p_memcpy_module = NULL;
     }
 
-    /* Free module bank !  */
+    /* Free module bank. It is refcounted, so we call this each time  */
     module_EndBank( p_libvlc );
 
     FREENULL( p_libvlc->psz_homedir );