[Bug 773932] New: Fix memory leak due to usage of Xlib API

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Nov 4 06:37:46 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=773932

            Bug ID: 773932
           Summary: Fix memory leak due to usage of Xlib API
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: g.gupta at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 339101
  --> https://bugzilla.gnome.org/attachment.cgi?id=339101&action=edit
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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list