summaryrefslogtreecommitdiff
path: root/src/connection.h
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2009-03-26 00:42:43 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2009-03-26 00:42:43 +0000
commit2e1a4093ad4bf7504583addd992879bf58748147 (patch)
treeb0f2c9a4a66ea34f939bf13d649037bf7bc001ff /src/connection.h
parent414fe1363fed4e54d43414500759d503f376078e (diff)
downloadtelepathy-haze-2e1a4093ad4bf7504583addd992879bf58748147.tar.gz
Don't assume purple_account_new returns a new account.
If an existing account for a given (prpl, username) exists, it's returned by purple_account_new (). If you called RequestConnection for an already-connected account Haze would trample over that account's ui_data before tp-glib failed RequestConnection (due to the connection unique name being the same), and then it would point to freed memory and crash Haze. Fixes fd.o #18361
Diffstat (limited to 'src/connection.h')
-rw-r--r--src/connection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/connection.h b/src/connection.h
index dda734b..8d9a1ef 100644
--- a/src/connection.h
+++ b/src/connection.h
@@ -86,6 +86,8 @@ haze_connection_handle_inspect (HazeConnection *conn,
TpHandleType handle_type,
TpHandle handle);
+gboolean haze_connection_create_account (HazeConnection *self, GError **error);
+
GType haze_connection_get_type (void);
/* TYPE MACROS */