Proxy object should be NULL after proxy deinit,
but g_object_unref just make free the object and do not make it NULL
Change-Id: I5ca2c14606527f5610181d6470d099fcf681c8cd
Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
{
if (gpio_proxy) {
g_object_unref(gpio_proxy);
+ if (!G_IS_OBJECT(gpio_proxy))
+ gpio_proxy = NULL;
}
}
{
if (i2c_proxy) {
g_object_unref(i2c_proxy);
+ if (!G_IS_OBJECT(i2c_proxy))
+ i2c_proxy = NULL;
}
}
{
if (pwm_proxy) {
g_object_unref(pwm_proxy);
+ if (!G_IS_OBJECT(pwm_proxy))
+ pwm_proxy = NULL;
}
}
{
if (uart_proxy) {
g_object_unref(uart_proxy);
+ if (!G_IS_OBJECT(uart_proxy))
+ uart_proxy = NULL;
}
}