gst/gstbuffer.c: Make it once again possible to free GstBuffers in the default build.
authorMichael Smith <msmith@xiph.org>
Wed, 26 Sep 2007 17:00:22 +0000 (17:00 +0000)
committerMichael Smith <msmith@xiph.org>
Wed, 26 Sep 2007 17:00:22 +0000 (17:00 +0000)
Original commit message from CVS:
* gst/gstbuffer.c: (gst_buffer_finalize):
Make it once again possible to free GstBuffers in the default
build.
The poisoning scribbles on parts of the miniobject we need in
order to free it.
Fixes #480341

ChangeLog
gst/gstbuffer.c

index ff70a59..0c736ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-09-26  Michael Smith <msmith@fluendo.com>
+
+       * gst/gstbuffer.c: (gst_buffer_finalize):
+         Make it once again possible to free GstBuffers in the default
+         build.
+         The poisoning scribbles on parts of the miniobject we need in
+         order to free it.
+         Fixes #480341
+
 2007-09-25  Tim-Philipp Müller  <tim at centricular dot net>
 
        * docs/gst/gstreamer-sections.txt:
index e7db9ea..c553ac1 100644 (file)
@@ -192,10 +192,6 @@ gst_buffer_finalize (GstBuffer * buffer)
   g_free (buffer->malloc_data);
 
   gst_caps_replace (&GST_BUFFER_CAPS (buffer), NULL);
-
-#ifdef USE_POISONING
-  memset (buffer, 0xff, sizeof (GstBuffer));
-#endif
 }
 
 /**