ximagesink: fix small memory leak when setting window title
This commit is contained in:
parent
a533ae303b
commit
f308675fc8
@ -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…
x
Reference in New Issue
Block a user