mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
ximagesink: fix small memory leak when setting window title
This commit is contained in:
parent
a533ae303b
commit
f308675fc8
1 changed files with 3 additions and 1 deletions
|
@ -831,8 +831,10 @@ gst_ximagesink_xwindow_set_title (GstXImageSink * ximagesink,
|
|||
|
||||
if (title) {
|
||||
if ((XStringListToTextProperty (((char **) &title), 1,
|
||||
&xproperty)) != 0)
|
||||
&xproperty)) != 0) {
|
||||
XSetWMName (ximagesink->xcontext->disp, xwindow->win, &xproperty);
|
||||
XFree (xproperty.value);
|
||||
}
|
||||
|
||||
g_free (title_mem);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue