summaryrefslogtreecommitdiff
path: root/lib/close.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>2000-02-22 22:16:30 +0000
committerMartin Baulig <martin@src.gnome.org>2000-02-22 22:16:30 +0000
commit6c6d8e006eb4164d4296e932e23d1b0f4cb27d7e (patch)
treed334714fca3e7eb2fd90f5f80b864a76d0661d69 /lib/close.c
parentdf3901571d7d052cbf23b5e2d1973f74e9a3461e (diff)
downloadlibgtop-6c6d8e006eb4164d4296e932e23d1b0f4cb27d7e.tar.gz
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.
Diffstat (limited to 'lib/close.c')
-rw-r--r--lib/close.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/close.c b/lib/close.c
index b6f84cde..53996d85 100644
--- a/lib/close.c
+++ b/lib/close.c
@@ -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);
}