]> git.sesse.net Git - vlc/blobdiff - test/native/gc.c
Less memleaks in Qt interface.
[vlc] / test / native / gc.c
index de198de2f4c5daaf79a89a8803ba8e1a4ecabc5d..f52263ad6c1025d3631d965935e5834a7d909601 100644 (file)
@@ -1,4 +1,8 @@
 #include "../pyunit.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 
 struct mygc
@@ -29,7 +33,7 @@ static PyObject *gc_test( PyObject *self, PyObject *args )
      vlc_gc_decref( gc );
      ASSERT( gc->i_gc_refcount == 1, "Refcount should be 1" );
      vlc_gc_decref( gc );
-     
+
      Py_INCREF( Py_None );
      return Py_None;
 };
@@ -39,4 +43,6 @@ static PyMethodDef native_gc_test_methods[] = {
    { NULL, NULL, 0, NULL }
 };
 
+asserts = 0;
+
 DECLARE_MODULE( native_gc_test )