Skip to content
Snippets Groups Projects
Commit 503523b1 authored by Jannis Pohlmann's avatar Jannis Pohlmann
Browse files

Fix sorting by type in ThunarListModel (bug #6143). Fix memleaks.

parent 65c1363c
No related branches found
No related tags found
No related merge requests found
......@@ -1556,7 +1556,7 @@ sort_by_type (const ThunarFile *a,
gint result;
content_type_a = thunar_file_get_content_type (a);
content_type_b = thunar_file_get_content_type (a);
content_type_b = thunar_file_get_content_type (b);
description_a = g_content_type_get_description (content_type_a);
description_b = g_content_type_get_description (content_type_b);
......@@ -1566,6 +1566,9 @@ sort_by_type (const ThunarFile *a,
if (result == 0)
result = sort_by_name (a, b, case_sensitive);
g_free (description_a);
g_free (description_b);
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment