Mercurial > pidgin.yaz
changeset 5269:cd7e4ba049f9
[gaim-migrate @ 5641]
Another effort at fixing a crash.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 01 May 2003 08:55:36 +0000 |
parents | 503cc9b0a8ef |
children | d1fe8e320dab |
files | src/plugin.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugin.c Thu May 01 08:34:52 2003 +0000 +++ b/src/plugin.c Thu May 01 08:55:36 2003 +0000 @@ -185,9 +185,12 @@ plugin->handle = g_module_open(filename, 0); if (plugin->handle == NULL) { - plugin->error = g_strdup(g_module_error()); + gaim_debug(GAIM_DEBUG_ERROR, "plugins", "%s is unloadable: %s\n", + plugin->path, g_module_error()); - return plugin; + gaim_plugin_destroy(plugin); + + return NULL; } if (!g_module_symbol(plugin->handle, "gaim_init_plugin",