From a533ae303b9c0450462fc45eec46988ef8cd2887 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Stadler?= Date: Sun, 6 Sep 2009 01:42:42 +0300 Subject: [PATCH] xvimagesink: fix small memory leak when setting window title --- sys/xvimage/xvimagesink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 2750eed..456371e 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -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); } -- 2.7.4