gst: Fix caps leak

https://bugzilla.gnome.org/show_bug.cgi?id=775072
This commit is contained in:
Garima Gaur 2016-11-30 10:40:42 +05:30 committed by Sebastian Dröge
parent bf11338d6f
commit aa08be43c7
2 changed files with 5 additions and 1 deletions

View file

@ -341,6 +341,7 @@ mpegpsmux_create_stream (MpegPsMux * mux, MpegPsPadData * ps_data, GstPad * pad)
}
beach:
gst_caps_unref (caps);
return ret;
}

View file

@ -91,11 +91,14 @@ size_changed (GObject * obj, GParamSpec * pspec, IDirectFBWindow * window)
gint width, height;
if (!(gst_structure_get_int (s, "width", &width) &&
gst_structure_get_int (s, "height", &height)))
gst_structure_get_int (s, "height", &height))) {
gst_caps_unref (caps);
return;
}
window->Resize (window, width, height);
}
gst_caps_unref (caps);
}
static void