--- a/libpurple/protocols/gg/gg.c Tue Sep 17 03:53:30 2024 -0500 +++ b/libpurple/protocols/gg/gg.c Tue Sep 17 14:31:28 2024 -0500 @@ -1146,8 +1146,7 @@ } } - msg = message->str; - g_string_free(message, FALSE); + msg = g_string_free(message, FALSE); if (got_image) { info->pending_richtext_messages = g_list_append(info->pending_richtext_messages, msg);