/pidgin/main: 9f11a7c7038d: Fix a crash when closing a chat window

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Tue Sep 11 06:50:45 EDT 2012


Changeset: 9f11a7c7038d8e25979e38cc47f41298443d2189
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-09-11 12:50 +0200
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/9f11a7c7038d

Description:

Fix a crash when closing a chat window

diffstat:

 pidgin/gtkblist.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff --git a/pidgin/gtkblist.c b/pidgin/gtkblist.c
--- a/pidgin/gtkblist.c
+++ b/pidgin/gtkblist.c
@@ -1147,6 +1147,10 @@ static void
 chat_select_account_cb(GObject *w, PurpleAccount *account,
                        PidginChatData *data)
 {
+	g_return_if_fail(w != NULL);
+	g_return_if_fail(data != NULL);
+	g_return_if_fail(account != NULL);
+
 	if (strcmp(purple_account_get_protocol_id(data->rq_data.account),
 	           purple_account_get_protocol_id(account)) == 0)
 	{



More information about the Commits mailing list