Mercurial > pidgin
comparison console/gntrequest.c @ 14019:19a1812e6c46
[gaim-migrate @ 16615]
Fix a crash.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 02 Aug 2006 06:24:38 +0000 |
parents | b7a99d54a5a9 |
children | c5bfede33622 |
comparison
equal
deleted
inserted
replaced
14018:35699556075f | 14019:19a1812e6c46 |
---|---|
156 { | 156 { |
157 GaimRequestActionCb callback = g_object_get_data(G_OBJECT(button), "activate-callback"); | 157 GaimRequestActionCb callback = g_object_get_data(G_OBJECT(button), "activate-callback"); |
158 gpointer data = g_object_get_data(G_OBJECT(button), "activate-userdata"); | 158 gpointer data = g_object_get_data(G_OBJECT(button), "activate-userdata"); |
159 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "activate-id")); | 159 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "activate-id")); |
160 | 160 |
161 callback(data, id); | 161 if (callback) |
162 callback(data, id); | |
162 | 163 |
163 gaim_request_close(GAIM_REQUEST_ACTION, window); | 164 gaim_request_close(GAIM_REQUEST_ACTION, window); |
164 } | 165 } |
165 | 166 |
166 static void* | 167 static void* |