comparison src/plugin.c @ 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
comparison
equal deleted inserted replaced
5268:503cc9b0a8ef 5269:cd7e4ba049f9
183 183
184 if (plugin->native_plugin) { 184 if (plugin->native_plugin) {
185 plugin->handle = g_module_open(filename, 0); 185 plugin->handle = g_module_open(filename, 0);
186 186
187 if (plugin->handle == NULL) { 187 if (plugin->handle == NULL) {
188 plugin->error = g_strdup(g_module_error()); 188 gaim_debug(GAIM_DEBUG_ERROR, "plugins", "%s is unloadable: %s\n",
189 189 plugin->path, g_module_error());
190 return plugin; 190
191 gaim_plugin_destroy(plugin);
192
193 return NULL;
191 } 194 }
192 195
193 if (!g_module_symbol(plugin->handle, "gaim_init_plugin", 196 if (!g_module_symbol(plugin->handle, "gaim_init_plugin",
194 (gpointer *)&gaim_init_plugin)) { 197 (gpointer *)&gaim_init_plugin)) {
195 g_module_close(plugin->handle); 198 g_module_close(plugin->handle);