diff finch/gntconv.c @ 18222:ef65d43190e5

Fix a few runtime warnings.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 21 Jun 2007 21:32:13 +0000
parents b8572b937c09
children 2b1af79e768f
line wrap: on
line diff
--- a/finch/gntconv.c	Thu Jun 21 18:08:48 2007 +0000
+++ b/finch/gntconv.c	Thu Jun 21 21:32:13 2007 +0000
@@ -554,7 +554,8 @@
 	
 	if (ggc->list == NULL) {
 		g_free(ggc->u.chat);
-		gnt_widget_destroy(ggc->window);
+		if (ggc->window)
+			gnt_widget_destroy(ggc->window);
 		g_free(ggc);
 	}
 }