# HG changeset patch # User Etan Reisner # Date 1246169075 0 # Node ID a42d6d83ec368596259ddad68d01453f8bee90ca # Parent df7705d4b19a0e6a2b416d9ac00ba4044f8b3967 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. diff -r df7705d4b19a -r a42d6d83ec36 libpurple/plugin.c --- 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);