Removed external declaration. New static variable. This maps backend names
2000-02-22 Martin Baulig <martin@home-of-linux.org> * lib/init-backends.c (glibtop_backend_*): Removed external declaration. * lib/open-backends.c (backend_init_table): New static variable. This maps backend names to their `glibtop_backend_info' structure. (glibtop_open_backend_l): Make this working for the non-gmodule case. * lib/close.c (close_backend): Likewise.
This commit is contained in:
committed by
Martin Baulig
parent
df3901571d
commit
6c6d8e006e
@@ -46,10 +46,12 @@ close_backend (gpointer value, gpointer user_data)
|
||||
|
||||
/* Note that two or more servers may open the same backend. */
|
||||
backend->_priv_module->refcount--;
|
||||
#if LIBGTOP_USE_GMODULE
|
||||
if (!backend->_priv_module->refcount) {
|
||||
g_module_close (backend->_priv_module->module);
|
||||
g_free (backend->_priv_module);
|
||||
}
|
||||
#endif /* LIBGTOP_USE_GMODULE */
|
||||
|
||||
g_free (backend);
|
||||
}
|
||||
|
Reference in New Issue
Block a user