comparison src/plugin.c @ 10145:4d484e455839

[gaim-migrate @ 11218] This fixes the crash / hang / strangeness when dragging a buddy to a conversation entry thing. Also fixes a minor memory leak with old plugins. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 26 Oct 2004 01:00:35 +0000
parents b4efa002dad8
children 0dbeb6d1e258
comparison
equal deleted inserted replaced
10144:757a7c088801 10145:4d484e455839
491 * we shouldn't, and crashing while trying to load an old plugin */ 491 * we shouldn't, and crashing while trying to load an old plugin */
492 if(plugin->info == NULL || plugin->info->magic != GAIM_PLUGIN_MAGIC || 492 if(plugin->info == NULL || plugin->info->magic != GAIM_PLUGIN_MAGIC ||
493 plugin->info->major_version != GAIM_MAJOR_VERSION) { 493 plugin->info->major_version != GAIM_MAJOR_VERSION) {
494 if(plugin->handle) 494 if(plugin->handle)
495 g_module_close(plugin->handle); 495 g_module_close(plugin->handle);
496 if(plugin->path != NULL)
497 g_free(plugin->path);
496 g_free(plugin); 498 g_free(plugin);
497 return; 499 return;
498 } 500 }
499 501
500 if (plugin->info != NULL && plugin->info->dependencies != NULL) 502 if (plugin->info != NULL && plugin->info->dependencies != NULL)