[Xfce4-commits] <thunar:master> Fix sorting by type in ThunarListModel (bug #6143). Fix memleaks.

Jannis Pohlmann noreply at xfce.org
Sun Jan 10 16:02:01 CET 2010


Updating branch refs/heads/master
         to 503523b1987aab346767954507da5b45801feeda (commit)
       from 65c1363c77753a8ce5bbefba8896d5686f7490f6 (commit)

commit 503523b1987aab346767954507da5b45801feeda
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Sun Jan 10 15:59:33 2010 +0100

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

 thunar/thunar-list-model.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/thunar/thunar-list-model.c b/thunar/thunar-list-model.c
index 1c10f91..b55fde7 100644
--- a/thunar/thunar-list-model.c
+++ b/thunar/thunar-list-model.c
@@ -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;
 }
 



More information about the Xfce4-commits mailing list