GNOME Bugzilla – Bug 706126
Some reference counting issues in gom-miner-main.c
Last modified: 2013-08-18 05:21:52 UTC
In gom-miner-main.c, I see that the invocation is ref'ed on each call to RefreshDB, but never unref'ed. However the miner is unref'ed on completion of RefreshDB, even though an extra reference was never added to it. I think this is wrong. I could be wrong, though. :-)
Created attachment 251827 [details] [review] miner-main: Fix and simplify reference counting
Skimming through the GDBus sources, I think that the ref/unref on the invocation is not needed because it won't be unref'ed unless we call g_dbus_method_invocation_return_value or g_dbus_method_invocation_return_error. Hence there is probably no need to add an extra reference to it in the first place.
Created attachment 251839 [details] [review] miner-main: Fix and simplify reference counting
Review of attachment 251839 [details] [review]: I think this is correct.
Thanks for the review.