Mercurial > pidgin
comparison src/plugin.c @ 9697:f568b6655331
[gaim-migrate @ 10556]
I'm not sure how this wasn't noticed before, but thanks to hyphenated for
pointing it out. We were checking if the load function pointer was valid
before calling unload. We should have checked unload.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 07 Aug 2004 09:07:20 +0000 |
parents | 22928adecb84 |
children | f8e395a054e2 |
comparison
equal
deleted
inserted
replaced
9696:a57fa78e5752 | 9697:f568b6655331 |
---|---|
424 if (loader == NULL) | 424 if (loader == NULL) |
425 return FALSE; | 425 return FALSE; |
426 | 426 |
427 loader_info = GAIM_PLUGIN_LOADER_INFO(loader); | 427 loader_info = GAIM_PLUGIN_LOADER_INFO(loader); |
428 | 428 |
429 if (loader_info->load != NULL) | 429 if (loader_info->unload != NULL) |
430 loader_info->unload(plugin); | 430 loader_info->unload(plugin); |
431 } | 431 } |
432 | 432 |
433 gaim_signals_disconnect_by_handle(plugin); | 433 gaim_signals_disconnect_by_handle(plugin); |
434 gaim_plugin_ipc_unregister_all(plugin); | 434 gaim_plugin_ipc_unregister_all(plugin); |