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 527585 - Memory leaks in collection interface
Memory leaks in collection interface
Status: RESOLVED FIXED
Product: at-spi
Classification: Platform
Component: api
1.22.x
Other All
: Normal normal
: ---
Assigned To: Li Yuan
Li Yuan
Depends on:
Blocks:
 
 
Reported: 2008-04-11 17:24 UTC by Mike Gorse
Modified: 2008-09-27 08:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (6.67 KB, patch)
2008-04-11 17:28 UTC, Mike Gorse
committed Details | Review

Description Mike Gorse 2008-04-11 17:24:33 UTC
Please describe the problem:
GLists are built but not freed, and strings are allocated when splitting attribute strings but not freed properly.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Mike Gorse 2008-04-11 17:28:36 UTC
Created attachment 109065 [details] [review]
Patch

Also swapped order of some checks so that a NULL pointer is checked for before attempting to read from it.
Comment 2 Matthias Clasen 2008-09-20 03:52:49 UTC
Patch looks good to me.