vdpsink: fix Memory leak due to Xlib API usage

https://bugzilla.gnome.org/show_bug.cgi?id=773932
This commit is contained in:
Gaurav Gupta 2016-11-04 11:56:13 +05:30 committed by Tim-Philipp Müller
parent dd0c56b4a2
commit fd2fed4844

View file

@ -155,8 +155,10 @@ gst_vdp_sink_window_set_title (VdpSink * vdp_sink,
if (title) {
if ((XStringListToTextProperty (((char **) &title), 1,
&xproperty)) != 0)
&xproperty)) != 0) {
XSetWMName (vdp_sink->device->display, window->win, &xproperty);
XFree (xproperty.value);
}
g_free (title_mem);
}