After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 618477 - Memory leak in gstappsink C# binding
Memory leak in gstappsink C# binding
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-sharp
git master
Other All
: Normal normal
: 0.9.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-05-12 18:31 UTC by kenkela
Modified: 2010-05-13 09:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that fixes the problem (1.17 KB, patch)
2010-05-12 18:31 UTC, kenkela
committed Details | Review

Description kenkela 2010-05-12 18:31:37 UTC
Created attachment 160923 [details] [review]
Patch that fixes the problem

When calling gst_app_sink_pull_buffer or gst_app_sink_pull_preroll a new Gst.Buffer object is created.  This has a reference count of 1 higher than it should hence the buffer isn't freed when the managed Gst.Buffer object is Disposed or garbage collected.  The result is that memory usage increases rapidly over time.

I have attached a patch that appears to fix the problem.
Comment 1 Sebastian Dröge (slomo) 2010-05-13 09:25:13 UTC
commit 721340c32d93558071e00e2f96e4163f7e98d7aa
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Thu May 13 11:24:22 2010 +0200

    Fix ownership of appsink return values
    
    Patch by kenkela@gmail.com.
    
    Fixes bug #618336.