diff src/gaimrc.c @ 570:93c65fbaa622

[gaim-migrate @ 580] switched the smiley button to a toggle button so that all the other toggle buttons on the playground would stop making fun of her... also added save and cancel buttons to the pref dialog, with pretty pixmaps to boot! committer: Tailor Script <tailor@pidgin.im>
author Todd Kulesza <fflewddur>
date Tue, 01 Aug 2000 22:32:21 +0000
parents dd82845ed7b6
children 71ea550c22ac
line wrap: on
line diff
--- a/src/gaimrc.c	Tue Aug 01 20:50:59 2000 +0000
+++ b/src/gaimrc.c	Tue Aug 01 22:32:21 2000 +0000
@@ -527,6 +527,16 @@
 
 void set_defaults()
 {
+        if (aim_users)
+        {
+        	g_list_free(aim_users);
+        	aim_users = NULL;
+        }
+        if (away_messages)
+        {
+        	g_list_free(away_messages);
+        	away_messages = NULL;
+        }
         general_options =
                 OPT_GEN_SEND_LINKS |
                 OPT_GEN_ENTER_SENDS |
@@ -568,7 +578,7 @@
 	FILE *f;
 	char buf[1024];
 	int ver = 0;
-	
+
         if (getenv("HOME")) {
                 g_snprintf(buf, sizeof(buf), "%s/.gaimrc", getenv("HOME"));
 		if ((f = fopen(buf,"r"))) {