[vlc-devel] commit: objects: Dump libvlc object when aborting because of leaks. ( Pierre d'Herbemont )

git version control git at videolan.org
Wed Apr 16 13:56:33 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Apr 16 13:56:23 2008 +0200| [305d523565cd254e45a24c830dbe199c3be0dcf9]

objects: Dump libvlc object when aborting because of leaks.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=305d523565cd254e45a24c830dbe199c3be0dcf9
---

 src/misc/objects.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index f0f5fc3..ba2f158 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -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();
         }




More information about the vlc-devel mailing list