changeset 10113:84985e2b85cc

[gaim-migrate @ 11147] Andrew Hart fixed a crash if you click Invite on the invite dialog more than once without entering a screen name. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 18 Oct 2004 12:51:29 +0000
parents 1a91e814e9d8
children 70a82a701aad
files src/gtkconv.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Mon Oct 18 05:40:02 2004 +0000
+++ b/src/gtkconv.c	Mon Oct 18 12:51:29 2004 +0000
@@ -633,11 +633,8 @@
 		buddy   = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(info->entry)->entry));
 		message = gtk_entry_get_text(GTK_ENTRY(info->message));
 
-		if (!g_ascii_strcasecmp(buddy, "")) {
-			g_free(info);
-
+		if (!g_ascii_strcasecmp(buddy, ""))
 			return;
-		}
 
 		serv_chat_invite(gaim_conversation_get_gc(info->conv),
 						 gaim_conv_chat_get_id(GAIM_CONV_CHAT(info->conv)),