xvimagesink: fix small memory leak when setting window title

This commit is contained in:
René Stadler 2009-09-06 01:42:42 +03:00
parent c40212f201
commit a533ae303b

View file

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