pidgin: b3ac8dd7: NULL-ify the loader_info->exts member. F...

deryni at pidgin.im deryni at pidgin.im
Sun Jul 5 11:18:52 EDT 2009


-----------------------------------------------------------------
Revision: b3ac8dd77570175a42881ecdee785fcd392a747a
Ancestor: 069008851c2fc7dd29b430293ba8368fb25794c5
Author: deryni at pidgin.im
Date: 2009-06-28T06:04:35
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b3ac8dd77570175a42881ecdee785fcd392a747a

Modified files:
        libpurple/plugin.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/plugin.c	eb27f1ebc8b3f0b053bd295c946663e1d137161c
+++ libpurple/plugin.c	10a941467e0d0251ab1c233c23d1c010fb885de5
@@ -861,6 +861,7 @@ purple_plugin_destroy(PurplePlugin *plug
 				}
 
 				g_list_free(loader_info->exts);
+				loader_info->exts = NULL;
 			}
 
 			plugin_loaders = g_list_remove(plugin_loaders, plugin);


More information about the Commits mailing list