[gstreamer-bugs] [Bug 515706] New: [ximagesrc] Memory leak when XDamage support is available

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Feb 11 00:16:28 PST 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=515706

  GStreamer | gst-plugins-good | Ver: HEAD CVS
           Summary: [ximagesrc] Memory leak when XDamage support is
                    available
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: blocker
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: slomo at circular-chaos.org
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Hi,
currently the damage_copy_gc field of the instance struct of ximagesrc is
filled with a GC if XDamage support is available. Unfortunately this is never
freed again which results in a memory leak.

I have no idea how to fix it though, calling XFreeGC on it in finalize and
before setting it (if != NULL) gives an X error.

==32362== 112 bytes in 1 blocks are definitely lost in loss record 15,320 of
16,085
==32362==    at 0x4024AB8: malloc (vg_replace_malloc.c:207)
==32362==    by 0x63D5274: XCreateGC (in /usr/lib/libX11.so.6.2.0)
==32362==    by 0x6C32C4B: gst_ximage_src_open_display (gstximagesrc.c:175)
==32362==    by 0x4A7004B: gst_base_src_start (gstbasesrc.c:2288)
==32362==    by 0x4A7161B: gst_base_src_activate_push (gstbasesrc.c:2505)
==32362==    by 0x4086BA6: gst_pad_activate_push (gstpad.c:896)
==32362==    by 0x4087094: gst_pad_activate_default (gstpad.c:569)
==32362==    by 0x4087122: gst_pad_set_active (gstpad.c:658)
==32362==    by 0x406DEEA: activate_pads (gstelement.c:2509)
==32362==    by 0x407A466: gst_iterator_fold (gstiterator.c:503)
==32362==    by 0x406D961: iterator_activate_fold_with_resync
(gstelement.c:2541)
==32362==    by 0x406D9FD: gst_element_pads_activate (gstelement.c:2577)
==32362==    by 0x406DD60: gst_element_change_state_func (gstelement.c:2651)
==32362==    by 0x4A736CC: gst_base_src_change_state (gstbasesrc.c:2642)
==32362==    by 0x406A476: gst_element_change_state (gstelement.c:2425)
==32362==    by 0x406A9C2: gst_element_set_state_func (gstelement.c:2375)
==32362==    by 0x4069522: gst_element_set_state (gstelement.c:2278)
==32362==    by 0x8049507: test_state_changes_up_and_down_seq (states.c:120)
==32362==    by 0x4031F0F: srunner_run_all (in
/home/slomo/projects/gstreamer/head/gstreamer/libs/gst/check/.libs/libgstcheck-0.10.so.0.15.0)
==32362==    by 0x402CFD9: gst_check_run_suite (gstcheck.c:520)


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=515706.




More information about the Gstreamer-bugs mailing list