changeset 2405:6e637ad18494

[gaim-migrate @ 2418] why is it that it's faster to commit from home than it is from work? committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 01 Oct 2001 15:49:04 +0000
parents 76edea8cafdc
children 184a7b05fd02
files src/module.c src/plugins.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/module.c	Mon Oct 01 15:05:26 2001 +0000
+++ b/src/module.c	Mon Oct 01 15:49:04 2001 +0000
@@ -52,6 +52,8 @@
 GList *plugins = NULL;
 GList *callbacks = NULL;
 
+char *last_dir = NULL;
+
 /* --------------- Function Declarations --------------------- */
 
 struct gaim_plugin *  load_plugin(char *);
@@ -92,6 +94,10 @@
 	}
 	plug = g_malloc(sizeof *plug);
 
+	if (last_dir)
+		g_free(last_dir);
+	last_dir = g_dirname(filename);
+
 	debug_printf("Loading %s\n", filename);
 	plug->handle = g_module_open(filename, 0);
 	if (!plug->handle) {
--- a/src/plugins.c	Mon Oct 01 15:05:26 2001 +0000
+++ b/src/plugins.c	Mon Oct 01 15:49:04 2001 +0000
@@ -72,7 +72,7 @@
 static guint confighandle = 0;
 static GtkWidget *reload = NULL;
 static GtkWidget *unload = NULL;
-static char *last_dir = NULL;
+extern char *last_dir;
 
 /* --------------- Function Declarations --------------------- */