Mercurial > pidgin
changeset 22326:4345e7aaa7d4
Don't call NULL callbacks. Fixes #4901
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Fri, 22 Feb 2008 17:26:23 +0000 |
parents | 42724bd41274 |
children | 10f9cc2808ec |
files | pidgin/minidialog.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/minidialog.c Wed Feb 20 05:07:09 2008 +0000 +++ b/pidgin/minidialog.c Fri Feb 22 17:26:23 2008 +0000 @@ -164,7 +164,8 @@ priv->idle_destroy_cb_id = g_idle_add((GSourceFunc) idle_destroy_cb, data->mini_dialog); - data->callback(data->mini_dialog, button, data->user_data); + if (data->callback != NULL) + data->callback(data->mini_dialog, button, data->user_data); }