From fe8a418b1a814b7e2b712281ea032ec7cc5a9fae Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sun, 8 Feb 2009 12:23:18 +0000 Subject: ephy-seed-extension: free this here. svn path=/trunk/; revision=8775 --- src/ephy-seed-extension.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ephy-seed-extension.c b/src/ephy-seed-extension.c index 281c3d5d0..701ad893c 100644 --- a/src/ephy-seed-extension.c +++ b/src/ephy-seed-extension.c @@ -138,13 +138,13 @@ ephy_seed_extension_get_file (const gchar * name) gchar *dot_dir, *dot_path, *system_path, *dirname; dot_dir = g_strconcat (ephy_dot_dir (), "/extensions", NULL); - dot_path = g_strconcat (dot_dir, "/", name, ".js", NULL); + dot_path = g_strconcat (dot_dir, "/", name, ".js", NULL); + g_free (dot_dir); + if (g_file_test (dot_path, G_FILE_TEST_EXISTS)) { - g_free (dot_dir); return dot_path; } - g_free (dot_dir); system_path = g_strconcat (EXTENSIONS_DIR, name, NULL); if (g_file_test (system_path, G_FILE_TEST_EXISTS)) -- cgit v1.2.3