diff options
author | René Stadler <mail@renestadler.de> | 2009-09-06 01:42:42 +0300 |
---|---|---|
committer | René Stadler <mail@renestadler.de> | 2009-09-06 01:44:23 +0300 |
commit | a533ae303b9c0450462fc45eec46988ef8cd2887 (patch) | |
tree | 123ec314201db7fb0b5c126890295b65f552d4e3 /sys | |
parent | c40212f2016579aa788fc86f729a6ef500f649b4 (diff) |
xvimagesink: fix small memory leak when setting window title
Diffstat (limited to 'sys')
-rw-r--r-- | sys/xvimage/xvimagesink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 2750eedc..456371e7 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); } |