GNOME Bugzilla – Bug 116804
Patch to fix some leaks + small cleanups
Last modified: 2004-12-22 21:47:04 UTC
Hi. This patch fixes some leaks in cddb-slave. It also has two minor cleanups, and forgot why the gconf_client_commit_change_set() stuff is in there, but I think it was related to a bugreport in gnome-media I tried to fix a while back. Feel free to ditch that change if it doesn't make sense. :)
Created attachment 18070 [details] [review] patch to fix leaks.
keywords and stuff. Please tell me if this patch looks ok.
Cool. Thanks for the patch. Wouldn't it be better for the g_free's in the capplet to be inside the 'if (str != NULL)' blocks? It really doesn't need to be free'd if it is NULL, and in some cases we might get a slightly faster execution.
Created attachment 18124 [details] [review] new patch updated to match comments
I updated the patch to match your comments. I still can't remember what the gconf call was about so you could remove that unless you see what I was thinking there :)
The gconf call is an attempt to fix #90788. That's what you get when you blindly go around trying to fix random stuff without documenting it :)
I'm going to commit this to the stable branch so I can get GNOME 2.2.2 out.
Committed to HEAD. marking as fixed.