Fix a buffer leak

Original commit message from CVS:
Fix a buffer leak
This commit is contained in:
Wim Taymans 2001-12-24 15:04:51 +00:00
parent 4aa99f88d8
commit 9a0d8226cc

View file

@ -344,6 +344,8 @@ gst_mad_output (void *data,
}
if (GST_PAD_CONNECTED (mad->srcpad))
gst_pad_push (mad->srcpad, buffer);
else
gst_buffer_unref (buffer);
return MAD_FLOW_CONTINUE;
}