Mercurial > pidgin
diff libpurple/plugin.c @ 21067:96929e7acb86
Make purple_xfers_uninit, purple_network_uninit, and purple_plugins_uninit
unregister the signals they register in their respective _init functions. This
is just cleanup I added when testing dbus signal export stuff (I'll be
committing that a bit later).
| author | Etan Reisner <pidgin@unreliablesource.net> |
|---|---|
| date | Thu, 18 Oct 2007 02:11:23 +0000 |
| parents | df58938e9f61 |
| children | 14afe5a92fc2 |
line wrap: on
line diff
--- a/libpurple/plugin.c Wed Oct 17 04:10:34 2007 +0000 +++ b/libpurple/plugin.c Thu Oct 18 02:11:23 2007 +0000 @@ -1161,7 +1161,7 @@ purple_plugins_init(void) { void *handle = purple_plugins_get_handle(); - purple_plugins_add_search_path(LIBDIR); + purple_plugins_add_search_path(LIBDIR); purple_signal_register(handle, "plugin-load", purple_marshal_VOID__POINTER, @@ -1176,8 +1176,12 @@ } void -purple_plugins_uninit(void) { - purple_signals_disconnect_by_handle(purple_plugins_get_handle()); +purple_plugins_uninit(void) +{ + void *handle = purple_plugins_get_handle(); + + purple_signals_disconnect_by_handle(handle); + purple_signals_unregister_by_instance(handle); } /**************************************************************************
