GNOME Bugzilla – Bug 325238
crash on definition not found (double free)
Last modified: 2005-12-30 12:49:56 UTC
search for a word for which a defintion is not found -> a dialog is popped up. When you close the dialog window->word is freed, when you search again window->word is freed again -> BOOM :) I don't think there is any need to free when closing the dialog so I took that free() out. (the alternative is to set window->word = NULL after the free). Along the way I also noticed another buglet: if you press enter when the definition entry is empty "" is looked up in the dictionary and the title is set to "dictionary - ". This is because gtk_entry_get_text never returns NULL so you need to check that *text != '\0'. patch follows
Created attachment 56508 [details] [review] patch
thanks, fixed in HEAD