[gst-devel] gstindex.c leak

Joshua N Pritikin vishnu at pobox.com
Fri Jan 3 10:07:02 CET 2003


Here's a trivial patch to plug one of many memory leaks.

-- 
Victory to the Divine Mother!!         after all,
  http://sahajayoga.org                  http://why-compete.org
-------------- next part --------------
Index: gstindex.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/gst/gstindex.c,v
retrieving revision 1.6
diff -u -u -r1.6 gstindex.c
--- gstindex.c	30 Dec 2002 17:42:10 -0000	1.6
+++ gstindex.c	3 Jan 2003 16:35:30 -0000
@@ -295,6 +295,12 @@
 void
 gst_index_entry_free (GstIndexEntry *entry)
 {
+  switch (entry->type) {
+  case GST_INDEX_ENTRY_ASSOCIATION:
+    if (GST_INDEX_NASSOCS (entry))
+      g_free (entry->data.assoc.assocs);
+    break;
+  }
   g_free (entry);
 }
 


More information about the gstreamer-devel mailing list