summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-04-12 12:08:14 +0200
committerMatthias Clasen <mclasen@redhat.com>2023-04-21 09:16:51 +0200
commitf66b6e5059b987ea2af09c188436fdaa78b65cf1 (patch)
treeca2ad684bab808b6a6c97aa08dd5e24a699ad211
parentca12226e7cfb5e9049850eb1f7c18a961be9e815 (diff)
downloadgtk+-f66b6e5059b987ea2af09c188436fdaa78b65cf1.tar.gz
filechooserentry: Plug a memory leak
-rw-r--r--gtk/gtkfilechooserentry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index 6c50524adb..e10ad94890 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -600,6 +600,9 @@ model_items_changed_cb (GListModel *model,
DISPLAY_NAME_COLUMN, display_name,
-1);
+ g_free (display_name);
+ g_free (full_path);
+
g_clear_object (&info);
position++;