Mercurial > pidgin
diff src/buddy.c @ 1047:ece2d1543b20
[gaim-migrate @ 1057]
Plugins now use GModule. Protocol plugins can be dynamically updated.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Wed, 01 Nov 2000 22:30:36 +0000 |
| parents | 67ed2ee5be9f |
| children | 749e25dc90cb |
line wrap: on
line diff
--- a/src/buddy.c Wed Nov 01 11:34:56 2000 +0000 +++ b/src/buddy.c Wed Nov 01 22:30:36 2000 +0000 @@ -788,12 +788,10 @@ c = plugins; while (c) { p = (struct gaim_plugin *)c->data; - gaim_plugin_remove = dlsym(p->handle, "gaim_plugin_remove"); - if ((error = (char *)dlerror()) == NULL) + if (g_module_symbol(p->handle, "gaim_plugin_remove", (gpointer *)&gaim_plugin_remove)) (*gaim_plugin_remove)(); /* we don't need to worry about removing callbacks since * there won't be any more chance to call them back :) */ - g_free(p->filename); /* why do i bother? */ g_free(p); c = c->next; }
