grim/purple-plugin-pack

Parents 65395437e244
Children 2cb954bb5b8f
Don't try to process a NULL chat message, another plugin freed the message.
--- a/slashexec/slashexec.c Fri Jul 03 20:28:40 2009 -0700
+++ b/slashexec/slashexec.c Mon Jul 06 14:05:23 2009 -0700
@@ -386,6 +386,9 @@
se_sending_chat_msg_cb(PurpleAccount *account, char **message, int id)
{
PurpleConversation *conv;
+ if (message == NULL || *message == NULL) /* It's possible if some other callback to
+ to the signal resets the message */
+ return;
conv = purple_find_chat(account->gc, id);
se_sending_msg_helper(conv, message);
}