[gnome-control-center/gnome-3-34] network: Fix GError leaks



commit da6bc2c36d2748a9cc1b0998532d45312af0a8b3
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Sep 12 10:43:13 2019 +1200

    network: Fix GError leaks

 panels/network/wireless-security/eap-method.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/panels/network/wireless-security/eap-method.c b/panels/network/wireless-security/eap-method.c
index 824f315a3..5d706263d 100644
--- a/panels/network/wireless-security/eap-method.c
+++ b/panels/network/wireless-security/eap-method.c
@@ -169,6 +169,7 @@ eap_method_init (gsize obj_size,
        if (!gtk_builder_add_from_resource (method->builder, ui_resource, &error)) {
                g_warning ("Couldn't load UI builder resource %s: %s",
                           ui_resource, error->message);
+               g_error_free (error);
                eap_method_unref (method);
                return NULL;
        }


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