Index: glib/gbookmarkfile.c
===================================================================
--- glib/gbookmarkfile.c	(revision 6536)
+++ glib/gbookmarkfile.c	(working copy)
@@ -998,7 +998,7 @@ is_element_full (ParseData   *parse_data
                  const gchar *element,
                  const gchar  sep)
 {
-  gchar *ns_uri, *ns_name, *s, *resolved;
+  gchar *ns_uri, *ns_name;
   const gchar *p, *element_name;
   gboolean retval;
  
@@ -1038,13 +1038,10 @@ is_element_full (ParseData   *parse_data
       return (0 == strcmp (element_full, element));
     }
   
-  resolved = g_strdup_printf ("%s%c%s", ns_uri, sep, element_name);
-  s = g_strdup_printf ("%s%c%s", namespace, sep, element);
-  retval = (0 == strcmp (resolved, s));
+  retval = ((strcmp (ns_uri, namespace) == 0)
+            && (strcmp (element_name, element)== 0));
   
   g_free (ns_name);
-  g_free (resolved);
-  g_free (s);
   
   return retval;
 }
