deinterlace: Fixed memory leak in error code path
https://bugzilla.gnome.org/show_bug.cgi?id=788041
This commit is contained in:
parent
c53bee067d
commit
49ed67c4f2
@ -2801,16 +2801,16 @@ set_caps_failed:
|
||||
GST_ERROR_OBJECT (pad, "Failed to set caps: %" GST_PTR_FORMAT, srccaps);
|
||||
if (peercaps)
|
||||
gst_caps_unref (peercaps);
|
||||
if (srccaps)
|
||||
gst_caps_unref (srccaps);
|
||||
gst_caps_unref (srccaps);
|
||||
gst_pad_mark_reconfigure (self->srcpad);
|
||||
return FALSE;
|
||||
}
|
||||
no_bufferpool:
|
||||
{
|
||||
GST_ERROR_OBJECT (pad, "could not negotiate bufferpool");
|
||||
if (srccaps)
|
||||
gst_caps_unref (srccaps);
|
||||
if (peercaps)
|
||||
gst_caps_unref (peercaps);
|
||||
gst_caps_unref (srccaps);
|
||||
gst_pad_mark_reconfigure (self->srcpad);
|
||||
return FALSE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user