Skip to content
Browse files

EomMetadataSidebar: Fix leaked strings

  • Loading branch information...
Felix Riemann authored and raveit65 committed Jan 15, 2015
1 parent a29a5d1 commit ece3c970b4cfb6cbb8f02cbb2d78176bb2a9461f
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/eom-metadata-sidebar.c
@@ -98,6 +98,7 @@ eom_metadata_sidebar_update_general_section (EomMetadataSidebar *sidebar)
EomImage *img = priv->image;
GFile *file, *parent_file;
GFileInfo *file_info;
gchar *basename, *baseuri;
gchar *str;
goffset bytes;
gint width, height;
@@ -142,10 +143,15 @@ eom_metadata_sidebar_update_general_section (EomMetadataSidebar *sidebar)
/* file is root directory itself */
parent_file = g_object_ref (file);
str = g_file_get_basename (parent_file);
str = g_markup_printf_escaped ("<a href=\"%s\">%s</a>", g_file_get_uri (parent_file), str);
basename = g_file_get_basename (parent_file);
baseuri = g_file_get_uri (parent_file);
str = g_markup_printf_escaped ("<a href=\"%s\">%s</a>",
gtk_label_set_markup (GTK_LABEL (priv->folder_label), str);
g_free (str);
g_free (baseuri);
g_free (basename);

str = g_file_get_path (parent_file);
gtk_widget_set_tooltip_text (GTK_WIDGET (priv->folder_label), str);

0 comments on commit ece3c97

Please sign in to comment.
You can’t perform that action at this time.