ximagesink: fix small memory leak when setting window title

This commit is contained in:
René Stadler 2009-09-06 15:21:43 +03:00
parent a533ae303b
commit f308675fc8

View file

@ -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);
}