mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Fixing a memleak
Original commit message from CVS: Fixing a memleak
This commit is contained in:
parent
db10d21391
commit
2eb7332b1b
1 changed files with 8 additions and 1 deletions
|
@ -398,6 +398,7 @@ gst_xvimagesink_get_xv_support (GstXContext *xcontext)
|
||||||
gint nb_formats;
|
gint nb_formats;
|
||||||
XvImageFormatValues *formats = NULL;
|
XvImageFormatValues *formats = NULL;
|
||||||
GstCaps *caps = NULL;
|
GstCaps *caps = NULL;
|
||||||
|
char *caps_str;
|
||||||
|
|
||||||
/* We get all image formats supported by our port */
|
/* We get all image formats supported by our port */
|
||||||
formats = XvListImageFormats (xcontext->disp,
|
formats = XvListImageFormats (xcontext->disp,
|
||||||
|
@ -457,7 +458,13 @@ gst_xvimagesink_get_xv_support (GstXContext *xcontext)
|
||||||
if (formats)
|
if (formats)
|
||||||
XFree (formats);
|
XFree (formats);
|
||||||
|
|
||||||
GST_DEBUG ("Generated the following caps %s", gst_caps_to_string (caps));
|
caps_str = gst_caps_to_string (caps);
|
||||||
|
|
||||||
|
GST_DEBUG ("Generated the following caps %s", caps_str);
|
||||||
|
|
||||||
|
if (caps_str)
|
||||||
|
g_free (caps_str);
|
||||||
|
|
||||||
return caps;
|
return caps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue