rmdemux: plug buffer leaking
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 19 Jun 2009 15:25:58 +0000 (17:25 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 22 Jun 2009 17:10:15 +0000 (19:10 +0200)
gst/realmedia/rmdemux.c

index 57e580c..22bd7bb 100644 (file)
@@ -2461,12 +2461,16 @@ gst_rmdemux_parse_audio_packet (GstRMDemux * rmdemux, GstRMDemuxStream * stream,
     }
     ret = gst_pad_push (stream->pad, buffer);
   }
+
+  gst_buffer_unref (in);
+
   return ret;
 
   /* ERRORS */
 alloc_failed:
   {
     GST_DEBUG_OBJECT (rmdemux, "pad alloc returned %d", ret);
+    gst_buffer_unref (in);
     return cret;
   }
 }