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 387652 - Fix some object reference counting issues
Fix some object reference counting issues
Status: RESOLVED FIXED
Product: gossip
Classification: Deprecated
Component: General
0.20
Other Linux
: Normal normal
: ---
Assigned To: Gossip Maintainers
Gossip Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-19 20:54 UTC by Xavier Claessens
Modified: 2006-12-28 18:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (5.17 KB, patch)
2006-12-19 20:56 UTC, Xavier Claessens
none Details | Review
better like that (5.99 KB, patch)
2006-12-19 21:20 UTC, Xavier Claessens
committed Details | Review
emit chatroom-removed only if it's really removed from lists (1.22 KB, patch)
2006-12-21 13:03 UTC, Xavier Claessens
committed Details | Review

Description Xavier Claessens 2006-12-19 20:54:38 UTC
GossipJabber is never finalized at gossip's exit so we don't see many refcount errors. GossipTelepathy seems better refcounted and is finalized at exit, but it lead to many bugs because some objects are too much unreffed in libgossip/UI.
Comment 1 Xavier Claessens 2006-12-19 20:56:39 UTC
Created attachment 78652 [details] [review]
proposed patch

Here is a patch with some fixes. It's already committed into TELEPATHY branch, I don't have time to test it enough in HEAD. Can someone play with it some times and tell me if it can be committed without breaking everything ?
Thanks.
Comment 2 Xavier Claessens 2006-12-19 21:20:56 UTC
Created attachment 78654 [details] [review]
better like that

Thanks to Richard for pointing me that chatroom might not be in the lists.
Comment 3 Xavier Claessens 2006-12-21 08:55:15 UTC
committed.
Comment 4 Richard Hult 2006-12-21 09:00:30 UTC
Should the signal be emitted if the list wasn't in the list?
Comment 5 Richard Hult 2006-12-21 09:01:24 UTC
If the room wasn't in the list, I mean :)
Comment 6 Xavier Claessens 2006-12-21 09:13:15 UTC
hm, I don't really know, if the room isn't in the list I guess it's because we call gossip_chatroom_manager_remove twice with the same room, so I guess the signal shouldn't be emitted twice. Good point.
Comment 7 Martyn Russell 2006-12-21 10:05:30 UTC
Xavier, 

PLEASE PLEASE! Do not commit patches like this without my or other lead developers review to HEAD. You asked me to review it and I haven't got around to it yet, that doesn't mean it is OK to commit.

To refrain from spending my time fixing regressions that you commit, Can you please wait next time and let me test it for a few days in HEAD before it is committed.

Please don't do this again.
Comment 8 Xavier Claessens 2006-12-21 13:03:53 UTC
Created attachment 78736 [details] [review]
emit chatroom-removed only if it's really removed from lists

patch to fix Richard's comment.
Comment 9 Martyn Russell 2006-12-28 18:24:07 UTC
Thanks Richard and Xavier :)