[libadwaita] adw-settings: Fix a common leak of a GError



commit 6381ce41a5825f67ccef5e95d0e530c68ef299b3
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Feb 9 13:40:40 2022 +0000

    adw-settings: Fix a common leak of a GError
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/adw-settings.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/adw-settings.c b/src/adw-settings.c
index edd51e43..d71eb24c 100644
--- a/src/adw-settings.c
+++ b/src/adw-settings.c
@@ -131,6 +131,8 @@ read_portal_setting (AdwSettings  *self,
       g_critical ("Couldn't read the %s setting: %s", name, error->message);
     }
 
+    g_clear_error (&error);
+
     return FALSE;
   }
 


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