mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
vdpsink: fix Memory leak due to Xlib API usage
https://bugzilla.gnome.org/show_bug.cgi?id=773932
This commit is contained in:
parent
dd0c56b4a2
commit
fd2fed4844
1 changed files with 3 additions and 1 deletions
|
@ -155,8 +155,10 @@ gst_vdp_sink_window_set_title (VdpSink * vdp_sink,
|
||||||
|
|
||||||
if (title) {
|
if (title) {
|
||||||
if ((XStringListToTextProperty (((char **) &title), 1,
|
if ((XStringListToTextProperty (((char **) &title), 1,
|
||||||
&xproperty)) != 0)
|
&xproperty)) != 0) {
|
||||||
XSetWMName (vdp_sink->device->display, window->win, &xproperty);
|
XSetWMName (vdp_sink->device->display, window->win, &xproperty);
|
||||||
|
XFree (xproperty.value);
|
||||||
|
}
|
||||||
|
|
||||||
g_free (title_mem);
|
g_free (title_mem);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue