changeset 27426:a42d6d83ec36

NULL-ify the loader_info->exts member. Fixes a crash if UIs repeatedly init and deinit the libpurple core (or simply destroy and reprobe a loader plugin) and the struct is static. Fixes the crash portion of #8758.
author Etan Reisner <pidgin@unreliablesource.net>
date Sun, 28 Jun 2009 06:04:35 +0000
parents df7705d4b19a
children e07abac099a2
files libpurple/plugin.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugin.c	Sat Jun 27 18:12:10 2009 +0000
+++ b/libpurple/plugin.c	Sun Jun 28 06:04:35 2009 +0000
@@ -861,6 +861,7 @@
 				}
 
 				g_list_free(loader_info->exts);
+				loader_info->exts = NULL;
 			}
 
 			plugin_loaders = g_list_remove(plugin_loaders, plugin);