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 690957 - debug-manager: Fix two leaks of GFile objects.
debug-manager: Fix two leaks of GFile objects.
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: debug-manager
unspecified
Other All
: Normal normal
: ---
Assigned To: Sébastien Granjoux
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-01 22:48 UTC by Carl-Anton Ingmarsson
Modified: 2013-01-06 18:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug-manager: Fix two leaks of GFile objects. (1.25 KB, patch)
2013-01-01 22:48 UTC, Carl-Anton Ingmarsson
accepted-commit_now Details | Review

Description Carl-Anton Ingmarsson 2013-01-01 22:48:44 UTC
See attached patch.
Comment 1 Carl-Anton Ingmarsson 2013-01-01 22:48:46 UTC
Created attachment 232466 [details] [review]
debug-manager: Fix two leaks of GFile objects.

1. BreakPointItem keeps a reference to the GFile so the file needs to be unreffed when
    the BreakPointItem is freed.

2. ianjuta_file_get_file() returns a GFile which needs to be unreffed.
Comment 2 Sébastien Granjoux 2013-01-06 13:35:08 UTC
Review of attachment 232466 [details] [review]:

Thank for fixing this, you can commit this patch and close this bug.