Changes: Fix a crash when emitting rosterChanged from within constructor
authorXavier Claessens <xavier.claessens@collabora.co.uk>
Wed, 23 Feb 2011 15:26:29 +0000 (16:26 +0100)
committerXavier Claessens <xavier.claessens@collabora.co.uk>
Wed, 23 Feb 2011 15:28:26 +0000 (16:28 +0100)
commitbd20871cb57fa4c9826f8346fd8de82c1f39385f
tree5e6dd8c094af7a6b37b8cfe6a1bfab5664b1e633
parentc9e1980ccdabdf279c6fcede02e08bb928626e2f
Changes: Fix a crash when emitting rosterChanged from within constructor

Problem is that we create a Tp::SharedPtr to wrap 'this' from within the constructor
so that's the only shared ptr reference at that moment, so once the signal finished
emition, the shared ptr is destroyed and delete 'this'.
plugins/telepathy/cdtpaccount.cpp