GNOME Bugzilla – Bug 773932
vdpsink: Fix memory leak due to usage of Xlib API
Last modified: 2016-11-05 11:43:06 UTC
Created attachment 339101 [details] [review] Fix memory leak due to usage of Xlib API Check attached patch for below fix: if (title) { if ((XStringListToTextProperty (((char **) &title), 1, - &xproperty)) != 0) + &xproperty)) != 0) { XSetWMName (vdp_sink->device->display, window->win, &xproperty); + XFree (xproperty.value); + } g_free (title_mem); } Memory allocated to xproperty.value should be freed by the caller.
Thanks for the patch, but this code is not even built at the moment :) Pushed it anyway, but usually we try not to do phantom patches for code that's not in use :) commit fd2fed4844b26c75cf380d0ebd0c0c0280a2315b Author: Gaurav Gupta <g.gupta@samsung.com> Date: Fri Nov 4 11:56:13 2016 +0530 vdpsink: fix Memory leak due to Xlib API usage https://bugzilla.gnome.org/show_bug.cgi?id=773932