diff src/plugin.c @ 12117:cb77957d644c

[gaim-migrate @ 14417] changelogify the awesome queueing system from Casey Harkins, add my own touch of awesomeness to it, and commit a patch I found somewhere earlier today to fix crashing on NetBSD. It might have been in the tracker, I'll have to hunt for it committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 16 Nov 2005 22:33:15 +0000
parents 5a08737f76c6
children 720fb68418d8
line wrap: on
line diff
--- a/src/plugin.c	Wed Nov 16 18:17:01 2005 +0000
+++ b/src/plugin.c	Wed Nov 16 22:33:15 2005 +0000
@@ -467,11 +467,15 @@
 			for (l = prpl_info->protocol_options; l != NULL; l = l->next)
 				gaim_account_option_destroy(l->data);
 
-			if (prpl_info->user_splits != NULL)
+			if (prpl_info->user_splits != NULL) {
 				g_list_free(prpl_info->user_splits);
+				prpl_info->user_splits = NULL;
+			}
 
-			if (prpl_info->protocol_options != NULL)
+			if (prpl_info->protocol_options != NULL) {
 				g_list_free(prpl_info->protocol_options);
+				prpl_info->protocol_options = NULL;
+			}
 		}
 	}
 	else {