]> git.0d.be Git - empathy.git/commit
Break after deleting current item in chatroom list
authorWill Thompson <will.thompson@collabora.co.uk>
Mon, 8 Jun 2009 21:39:56 +0000 (22:39 +0100)
committerWill Thompson <will.thompson@collabora.co.uk>
Tue, 9 Jun 2009 09:53:51 +0000 (10:53 +0100)
commit279a93cbc25ade081510d94c20777e16527cf475
tree6229b094edb07ba72658f9ce49fbf34de74bacfc
parentf0ff888b79ce3c902f4f7211bbe1dadcba0c1799
Break after deleting current item in chatroom list

When I signed off, Empathy exploded. l was 0x33, which oddly enough was
secretly not the address of a GList. :-) I think what happened is that
empathy_chatroom_manager_remove() deleted the list node currently
pointed to by l; then the loop advanced to l->next, which was now
garbage.

We don't need to keep iterating once we find the chatroom we were
looking for, so break out of the loop.
libempathy/empathy-chatroom-manager.c