summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>2020-09-16 17:36:15 +0200
committerAndre Miranda <andreldm@xfce.org>2021-03-04 00:20:43 -0300
commit20ba9cf32a2990779965a561d0abe3e2a34e581e (patch)
treecdc5cd0d978681efce53919a8d03ea4c8cac9b8c
parent82b6d5af659777d9f708351aa59b337d0dd98cde (diff)
downloadxfce4-appfinder-20ba9cf32a2990779965a561d0abe3e2a34e581e.tar.gz
Fix memory leaks when sorting items
-rw-r--r--src/appfinder-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/appfinder-window.c b/src/appfinder-window.c
index a0e34d2..638f2bb 100644
--- a/src/appfinder-window.c
+++ b/src/appfinder-window.c
@@ -1961,11 +1961,13 @@ xfce_appfinder_window_sort_items (GtkTreeModel *model,
gtk_tree_model_get (model, a, XFCE_APPFINDER_MODEL_COLUMN_TITLE, &title_a, -1);
normalized = g_utf8_normalize (title_a, -1, G_NORMALIZE_ALL);
+ g_free (title_a);
title_a = g_utf8_casefold (normalized, -1);
g_free (normalized);
gtk_tree_model_get (model, b, XFCE_APPFINDER_MODEL_COLUMN_TITLE, &title_b, -1);
normalized = g_utf8_normalize (title_b, -1, G_NORMALIZE_ALL);
+ g_free (title_b);
title_b = g_utf8_casefold (normalized, -1);
g_free (normalized);