[network-manager-applet/bg/wifi-dialog-free] wifi-dialog: fix wrong free



commit b4c365b136e25e69c3550a9984f8f3cbec4bc073
Author: Beniamino Galvani <bgalvani redhat com>
Date:   Mon Feb 18 09:17:45 2019 +0100

    wifi-dialog: fix wrong free
    
    Fixes: 755cc5647f4ee1bb90db6fa884ff1e7105c2d321
    
    https://gitlab.gnome.org/GNOME/network-manager-applet/issues/43

 src/libnma/nma-wifi-dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libnma/nma-wifi-dialog.c b/src/libnma/nma-wifi-dialog.c
index 009bf440..a90b20d7 100644
--- a/src/libnma/nma-wifi-dialog.c
+++ b/src/libnma/nma-wifi-dialog.c
@@ -1260,7 +1260,7 @@ nma_wifi_dialog_get_connection (NMAWifiDialog *self,
                s_wireless = (NMSettingWireless *) nm_setting_wireless_new ();
                ssid = validate_dialog_ssid (self);
                g_object_set (s_wireless, NM_SETTING_WIRELESS_SSID, ssid, NULL);
-               g_free (ssid);
+               g_bytes_unref (ssid);
 
                if (priv->operation == OP_CREATE_ADHOC) {
                        NMSetting *s_ip4;


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