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