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 490203 - Memory leak in egg-recent-view-bonobo.c
Memory leak in egg-recent-view-bonobo.c
Status: RESOLVED FIXED
Product: drivel
Classification: Deprecated
Component: general
2.0.x
Other Linux
: Normal minor
: 3.0
Assigned To: Neil Williams
Todd Kulesza
Depends on:
Blocks:
 
 
Reported: 2007-10-25 16:48 UTC by Tobias Mueller
Modified: 2009-11-05 10:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch which removes g_strdup inside g_set_value_string (545 bytes, patch)
2007-10-25 16:49 UTC, Tobias Mueller
committed Details | Review

Description Tobias Mueller 2007-10-25 16:48:06 UTC
I noticed in
            src/libegg/egg-recent-view-bonobo.c (revision 629)

the following lines:

                case PROP_MENU_PATH:
                       g_value_set_string (value, g_strdup (view->path));

which is a memory leak since g_value_set_string dups the string itself.
Comment 1 Tobias Mueller 2007-10-25 16:49:02 UTC
Created attachment 97861 [details] [review]
Patch which removes g_strdup inside g_set_value_string
Comment 2 Neil Williams 2009-04-03 21:56:17 UTC
Hopefully be able to get this into 2.0.4.
Comment 3 Neil Williams 2009-04-05 14:55:18 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.