From 2dbebbd0bf0fcc9d1080b96f899d4e57332839db Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 26 Feb 2015 10:36:20 +0100 Subject: 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). --- src/mm-bearer-qmi.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2