Don't override Gst.Object.Dispose()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 4 Apr 2009 12:31:25 +0000 (14:31 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 4 Apr 2009 12:31:25 +0000 (14:31 +0200)
We can't call gst_object_unref() directly as this will conflict
with the toggle-refs used in glib-sharp. It's also not required
to call gst_object_unref(), it's just a wrapper around g_object_unref()
with some debugging.

gstreamer-sharp/Object.custom

index 940ee23..ab8de1c 100644 (file)
@@ -4,10 +4,3 @@
        }
 
 
-       public override void Dispose() {
-               if(this.Handle != IntPtr.Zero) {
-                       Gst.Object.Unref(this.Handle);
-                       this.Raw = IntPtr.Zero;
-               }
-       }
-