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 654631 - Memleak in Gst.Object.name: should return owned value
Memleak in Gst.Object.name: should return owned value
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings: GTK+ GStreamer WebKitGTK+
0.13.x
Other Linux
: Normal critical
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2011-07-14 16:55 UTC by Marcin Lewandowski
Modified: 2011-07-15 12:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that fixes the bug (531 bytes, patch)
2011-07-14 16:55 UTC, Marcin Lewandowski
none Details | Review

Description Marcin Lewandowski 2011-07-14 16:55:02 UTC
Currently (0.13.1), Gst.Object.name property does not return owned value.

That does not conform with the GStreamer API [1] and could lead to memory leaks.

Please note & commit attached patch.

[1] http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstObject.html#gst-object-get-name
Comment 1 Marcin Lewandowski 2011-07-14 16:55:58 UTC
Created attachment 191985 [details] [review]
Patch that fixes the bug
Comment 2 Luca Bruno 2011-07-15 12:28:21 UTC
commit 66c4778ccfdbd5331e795e8487a5adcd4ea1904c
Author: Marcin Lewandowski <www@saepia.net>
Date:   Fri Jul 15 14:27:19 2011 +0200

    gstreamer-0.10: Fix ownership of get accessor of Object.name property
    
    Fixes bug 654631.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.