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 57e580c86454cda24ea9e4d3b83a6abeb21f17c9..22bd7bb9be66801c80e020b392d672daa9df9378 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;
   }
 }