core: plug leaks when passing GValueArrays to dbus_g_method_return()
The ownership of the GValueArray is not transferred.
This commit is contained in:
@@ -131,6 +131,8 @@ serving_system_call_done (MMModemCdma *self,
|
||||
g_value_unset (&value);
|
||||
|
||||
dbus_g_method_return (context, array);
|
||||
|
||||
g_value_array_free (array);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -202,6 +202,8 @@ reg_info_call_done (MMModemGsmNetwork *self,
|
||||
g_value_unset (&value);
|
||||
|
||||
dbus_g_method_return (context, array);
|
||||
|
||||
g_value_array_free (array);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -325,6 +325,8 @@ get_ip4_done (MMModem *modem,
|
||||
value_array_add_uint (array, dns3);
|
||||
|
||||
dbus_g_method_return (context, array);
|
||||
|
||||
g_value_array_free (array);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -413,6 +415,8 @@ info_call_done (MMModem *self,
|
||||
g_value_unset (&value);
|
||||
|
||||
dbus_g_method_return (context, array);
|
||||
|
||||
g_value_array_free (array);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user