diff src/plugin.c @ 5638:0bdfa28c678e

[gaim-migrate @ 6047] We're slowly killing off multi.h. The proto_user_split and proto_user_opt have been replaced with GaimAccountOption and GaimAccountUserSplit structures, which of course have an API. The account dialog is being rewritten as well, and will soon allow you to add and modify accounts again. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 01 Jun 2003 17:40:20 +0000
parents 5e7de337a053
children 48c63ee49961
line wrap: on
line diff
--- a/src/plugin.c	Sun Jun 01 16:17:15 2003 +0000
+++ b/src/plugin.c	Sun Jun 01 17:40:20 2003 +0000
@@ -40,6 +40,7 @@
 #endif
 
 #include "gaim.h"
+#include "accountopt.h"
 #include "prpl.h"
 #include "event.h"
 #include "notify.h"
@@ -329,30 +330,17 @@
 		if (plugin->info->type == GAIM_PLUGIN_PROTOCOL) {
 			GaimPluginProtocolInfo *prpl_info;
 			GList *l;
-			struct proto_user_split *pus;
-			struct proto_user_opt *puo;
 
 			prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(plugin);
 
-			for (l = prpl_info->user_splits; l != NULL; l = l->next) {
-				pus = l->data;
+			for (l = prpl_info->user_splits; l != NULL; l = l->next)
+				gaim_account_user_split_destroy(l->data);
 
-				g_free(pus->label);
-				g_free(pus->def);
-				g_free(pus);
-			}
+			for (l = prpl_info->protocol_options; l != NULL; l = l->next)
+				gaim_account_option_destroy(l->data);
 
 			g_list_free(prpl_info->user_splits);
-
-			for (l = prpl_info->user_opts; l != NULL; l = l->next) {
-				puo = l->data;
-
-				g_free(puo->label);
-				g_free(puo->def);
-				g_free(puo);
-			}
-
-			g_list_free(prpl_info->user_opts);
+			g_list_free(prpl_info->protocol_options);
 		}
 		else if (plugin->info->type == GAIM_PLUGIN_LOADER) {
 			GaimPluginLoaderInfo *loader_info;