# HG changeset patch # User Eric Warmenhoven # Date 1001951344 0 # Node ID 6e637ad18494be6fc6d3aa96d63c8722e5172f3d # Parent 76edea8cafdc79b311c4000114cb1d3c8b06bf95 [gaim-migrate @ 2418] why is it that it's faster to commit from home than it is from work? committer: Tailor Script diff -r 76edea8cafdc -r 6e637ad18494 src/module.c --- 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) { diff -r 76edea8cafdc -r 6e637ad18494 src/plugins.c --- 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 --------------------- */