aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r--mail/em-folder-tree-model.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 62b526496a..0f240aa056 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -197,7 +197,7 @@ sort_cb (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data
aname = gtk_tree_path_to_string (path);
gtk_tree_path_free (path);
} else {
- aname = g_strdup("");
+ return 1;
}
path = gtk_tree_model_get_path (model, b);
@@ -205,10 +205,12 @@ sort_cb (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data
bname = gtk_tree_path_to_string (path);
gtk_tree_path_free (path);
} else {
- bname = g_strdup("");
+ g_free(aname);
+ return -1;
}
-
+
ret = strcmp (aname, bname);
+
g_free (aname);
g_free (bname);