fix copyright in header and typo in debugging category name
authorSebastien Cote <sebas642@yahoo.ca>
Sun, 6 Jun 2004 19:44:19 +0000 (19:44 +0000)
committerBenjamin Otte <otte@gnome.org>
Sun, 6 Jun 2004 19:44:19 +0000 (19:44 +0000)
Original commit message from CVS:
* gst/gstqueue.c: (gst_queue_dispose), (gst_queue_change_state):
fix memory leaks (fixes #142795). Initial patch by Sebastien Cote
* libs/gst/bytestream/adapter.c:
* libs/gst/bytestream/adapter.h:
fix copyright in header and typo in debugging category name

ChangeLog
gst/gstqueue.c
libs/gst/bytestream/adapter.c
libs/gst/bytestream/adapter.h
plugins/elements/gstqueue.c

index e467744..8ad73d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-06-06  Benjamin Otte  <otte@gnome.org>
+
+       * gst/gstqueue.c: (gst_queue_dispose), (gst_queue_change_state):
+         fix memory leaks (fixes #142795). Initial patch by Sebastien Cote
+       * libs/gst/bytestream/adapter.c:
+       * libs/gst/bytestream/adapter.h:
+         fix copyright in header and typo in debugging category name
+
 2004-06-05  Thomas Vander Stichele  <thomas (at) apestaart (dot) org>
 
        * configure.ac:
index f13d9f5..0f6c076 100644 (file)
@@ -316,6 +316,7 @@ gst_queue_dispose (GObject * object)
 
     gst_event_unref (event);
   }
+  g_queue_free (queue->events);
 
   if (G_OBJECT_CLASS (parent_class)->dispose)
     G_OBJECT_CLASS (parent_class)->dispose (object);
@@ -892,6 +893,7 @@ gst_queue_change_state (GstElement * element)
       break;
     case GST_STATE_PAUSED_TO_READY:
       gst_queue_locked_flush (queue);
+      gst_caps_replace (&queue->negotiated_caps, NULL);
       break;
     default:
       break;
index fb050b0..87fb5f8 100644 (file)
@@ -1,5 +1,5 @@
 /* GStreamer
- * Copyright (C) 2001 Erik Walthinsen <omega@temple-baptist.com>
+ * Copyright (C) 2004 Benjamin Otte <otte@gnome.org>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -27,7 +27,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_adapter_debug);
 #define GST_CAT_DEFAULT gst_adapter_debug
 
 #define _do_init(thing) \
-  GST_DEBUG_CATEGORY_INIT (gst_adapter_debug, "GstAdapter", 0, "object to splice and merge buffers to dewsired size")
+  GST_DEBUG_CATEGORY_INIT (gst_adapter_debug, "GstAdapter", 0, "object to splice and merge buffers to desired size")
 GST_BOILERPLATE_FULL (GstAdapter, gst_adapter, GObject, G_TYPE_OBJECT, _do_init)
 
      static void gst_adapter_dispose (GObject * object);
index d91fdb8..4257cf5 100644 (file)
@@ -1,5 +1,5 @@
 /* GStreamer
- * Copyright (C) 2001 Erik Walthinsen <omega@temple-baptist.com>
+ * Copyright (C) 2004 Benjamin Otte <otte@gnome.org>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
index f13d9f5..0f6c076 100644 (file)
@@ -316,6 +316,7 @@ gst_queue_dispose (GObject * object)
 
     gst_event_unref (event);
   }
+  g_queue_free (queue->events);
 
   if (G_OBJECT_CLASS (parent_class)->dispose)
     G_OBJECT_CLASS (parent_class)->dispose (object);
@@ -892,6 +893,7 @@ gst_queue_change_state (GstElement * element)
       break;
     case GST_STATE_PAUSED_TO_READY:
       gst_queue_locked_flush (queue);
+      gst_caps_replace (&queue->negotiated_caps, NULL);
       break;
     default:
       break;