From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2010-09-01 22:45:26
|
https://bugzilla.gnome.org/show_bug.cgi?id=628564 gnome-perl | Glib | unspecified Summary: list_properties() memory leak if no properties Classification: Bindings Product: gnome-perl Version: unspecified OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: Glib AssignedTo: gtk...@li... ReportedBy: us...@zi... QAContact: gtk...@li... GNOME target: --- GNOME version: --- Created an attachment (id=169304) --> (https://bugzilla.gnome.org/attachment.cgi?id=169304) failing program, on an object Glib::Object->list_properties() and similar calls on objects or interfaces with no properties leaks memory. The programs obj.pl and iface.pl below use ever more memory. I think the g_free() must be done always, even when n_props==0, per attached diff. I think the returned pspecs array is never empty but always has at least a NULL sentinel. Alas like many details that's not actually described in the glib docs. -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |