aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2015-02-26 10:36:20 +0100
committerAleksander Morgado <aleksander@aleksander.es>2015-02-26 10:37:23 +0100
commit2dbebbd0bf0fcc9d1080b96f899d4e57332839db (patch)
tree53f6d03255ae853cf6e3690fd2a5e20fd494c631 /src
parentde9446e13b7849ef4aad2664bc500c2fa2bb6d9c (diff)
bearer-qmi: avoid unref-ing arrays owned by the output bundles
When we get an array from a libqmi output or input bundle, the array is always owned by the bundle (i.e. transfer-none).
Diffstat (limited to 'src')
-rw-r--r--src/mm-bearer-qmi.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c
index 51abb305..408b9cdb 100644
--- a/src/mm-bearer-qmi.c
+++ b/src/mm-bearer-qmi.c
@@ -406,7 +406,6 @@ get_ipv6_config (MMBearerQmi *self,
/* IPv6 address */
qmi_inet6_ntop (array, buf, sizeof (buf));
- g_array_unref (array);
mm_bearer_ip_config_set_address (config, buf);
mm_bearer_ip_config_set_prefix (config, prefix);
@@ -417,7 +416,6 @@ get_ipv6_config (MMBearerQmi *self,
qmi_inet6_ntop (array, buf, sizeof (buf));
mm_bearer_ip_config_set_gateway (config, buf);
mm_dbg (" Gateway: %s", buf);
- g_array_unref (array);
} else {
mm_dbg (" Gateway: failed (%s)", error->message);
g_clear_error (&error);
@@ -428,7 +426,6 @@ get_ipv6_config (MMBearerQmi *self,
qmi_inet6_ntop (array, buf, sizeof (buf));
dns[dns_idx++] = buf;
mm_dbg (" DNS #1: %s", buf);
- g_array_unref (array);
} else {
mm_dbg (" DNS #1: failed (%s)", error->message);
g_clear_error (&error);
@@ -439,7 +436,6 @@ get_ipv6_config (MMBearerQmi *self,
qmi_inet6_ntop (array, buf2, sizeof (buf2));
dns[dns_idx++] = buf2;
mm_dbg (" DNS #2: %s", buf2);
- g_array_unref (array);
} else {
mm_dbg (" DNS #2: failed (%s)", error->message);
g_clear_error (&error);