soc.2009.transport: 080f4c8c: fixed crash on requestClose

hanzz at soc.pidgin.im hanzz at soc.pidgin.im
Tue Jun 30 08:10:53 EDT 2009


-----------------------------------------------------------------
Revision: 080f4c8c43bb246efa39e7500529b61abee7d7b7
Ancestor: fcf47c38bdb9ead72d80bebb8d437fcff97d1fd6
Author: hanzz at soc.pidgin.im
Date: 2009-06-30T12:08:22
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/080f4c8c43bb246efa39e7500529b61abee7d7b7

Modified files:
        main.cpp

ChangeLog: 

fixed crash on requestClose

-------------- next part --------------
============================================================
--- main.cpp	7c68f1161604e0f9abb3ae475d383a030392fb3c
+++ main.cpp	ff374ca50fa920b9acd3834fafbdff313e639b82
@@ -325,6 +325,8 @@ static void requestClose(PurpleRequestTy
 }
 
 static void requestClose(PurpleRequestType type, void *ui_handle) {
+	if (!ui_handle)
+		return;
 	if (type == PURPLE_REQUEST_INPUT) {
 		AbstractPurpleRequest *r = (AbstractPurpleRequest *) ui_handle;
 		if (r->requestType() == CALLER_ADHOC) {


More information about the Commits mailing list