[gnome-applets] window-buttons: fix memory leak



commit 3589d6142ad83bcef26f92f6ef1cb87cbb3d7460
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Mar 3 14:41:12 2022 +0200

    window-buttons: fix memory leak
    
    Coverity CID: #1502740

 gnome-applets/window-buttons/theme.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gnome-applets/window-buttons/theme.c b/gnome-applets/window-buttons/theme.c
index 146125830..f0974e239 100644
--- a/gnome-applets/window-buttons/theme.c
+++ b/gnome-applets/window-buttons/theme.c
@@ -134,6 +134,9 @@ loadThemeComboBox (GtkComboBox *combo,
                                2, 1+N_THEMES++,
                                -1 );
        }
+
+       g_dir_close (dir_themes);
+
        if (active<0) active = N_THEMES;
 
     gtk_list_store_append( store, &iter );


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]