diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2020-01-29 10:37:20 +0100 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2020-01-29 10:37:20 +0100 |
| commit | ff7ca6f26bc6763f53920c85e2c3b66259003527 (patch) | |
| tree | 19de30bc725005d8972eb08d500c1b01d7c35101 /src/devices | |
| parent | 5a09f7759860f4f2a9bb01471ca8099cd705bc10 (diff) | |
| parent | 55780b62324ba5492ce2670817fc0a8c209cc138 (diff) | |
Merge remote-tracking branch 'salsa/debian/master' into ubuntu/master
Diffstat (limited to 'src/devices')
| -rw-r--r-- | src/devices/wifi/nm-device-wifi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c index 65ba2bcc..98f9df25 100644 --- a/src/devices/wifi/nm-device-wifi.c +++ b/src/devices/wifi/nm-device-wifi.c @@ -1075,7 +1075,6 @@ static GPtrArray * ssids_options_to_ptrarray (GVariant *value, GError **error) { GPtrArray *ssids = NULL; - GVariant *v; const guint8 *bytes; gsize len; int num_ssids, i; @@ -1092,6 +1091,8 @@ ssids_options_to_ptrarray (GVariant *value, GError **error) if (num_ssids) { ssids = g_ptr_array_new_full (num_ssids, (GDestroyNotify) g_bytes_unref); for (i = 0; i < num_ssids; i++) { + gs_unref_variant GVariant *v = NULL; + v = g_variant_get_child_value (value, i); bytes = g_variant_get_fixed_array (v, &len, sizeof (guint8)); if (len > 32) { |