]> git.sesse.net Git - vlc/commitdiff
objects: Dump libvlc object when aborting because of leaks.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 16 Apr 2008 11:56:23 +0000 (13:56 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 16 Apr 2008 11:56:40 +0000 (13:56 +0200)
src/misc/objects.c

index f0f5fc36e6872639e897497575cdf8c24014b10a..ba2f15825dd037f1d0794382e1c08820671bd750 100644 (file)
@@ -371,8 +371,10 @@ static void vlc_object_destroy( vlc_object_t *p_this )
                      p_this->pp_children[i]->psz_object_name );
         }
         fflush(stderr);
+
         /* Dump libvlc object to ease debugging */
         vlc_object_dump( p_this->p_libvlc );
+
         abort();
     }
 
@@ -406,6 +408,10 @@ static void vlc_object_destroy( vlc_object_t *p_this )
                          p_global->pp_objects[i]->psz_object_name );
                 fflush(stderr);
             }
+
+            /* Dump libvlc object to ease debugging */
+            vlc_object_dump( p_this );
+
             /* Strongly abort, cause we want these to be fixed */
             abort();
         }