# HG changeset patch # User Richard Laager # Date 1124289375 0 # Node ID a4ce037250259fed8ea953d6495912851e5398f6 # Parent fb6e85c55fb81b66472d5c7b8b61fa76ef389be7 [gaim-migrate @ 13486] Die g_assert() and let Gaim live. committer: Tailor Script diff -r fb6e85c55fb8 -r a4ce03725025 plugins/spellchk.c --- a/plugins/spellchk.c Wed Aug 17 04:25:57 2005 +0000 +++ b/plugins/spellchk.c Wed Aug 17 14:36:15 2005 +0000 @@ -448,7 +448,7 @@ spell->word = NULL; } -spellchk* +void spellchk_new_attach(GaimConversation *c) { spellchk *spell; GtkTextBuffer *buffer; @@ -461,7 +461,8 @@ view = GTK_TEXT_VIEW(gtkconv->entry); spell = g_object_get_data(G_OBJECT(view), SPELLCHK_OBJECT_KEY); - g_assert(spell == NULL); + if (spell == NULL) + return; /* attach to the widget */ spell = g_new0(spellchk, 1); @@ -494,7 +495,7 @@ "insert-text", G_CALLBACK(insert_text_after), spell); - return spell; + return; } static int buf_get_line(char *ibuf, char **buf, int *position, int len)