epiphany r8775 - trunk/src



Author: xan
Date: Sun Feb  8 12:23:18 2009
New Revision: 8775
URL: http://svn.gnome.org/viewvc/epiphany?rev=8775&view=rev

Log:
ephy-seed-extension: free this here.

Modified:
   trunk/src/ephy-seed-extension.c

Modified: trunk/src/ephy-seed-extension.c
==============================================================================
--- trunk/src/ephy-seed-extension.c	(original)
+++ trunk/src/ephy-seed-extension.c	Sun Feb  8 12:23:18 2009
@@ -138,13 +138,13 @@
   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))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]