{
LOGE("Failed to create event callbacks !");
//TODO: Disconnect by destroying rpc_port_proxy_mmifw_h
- return;
+ goto err;
}
r = rpc_port_proxy_mmifw_invoke_register_cb(h, focus_cb_h, state_change_cb_h, wakeup_cb_h,
{
LOGE("Failed to register event callbacks !\n");
//TODO: Disconnect by destroying rpc_port_proxy_mmifw_h
- return;
+ goto err;
}
_connected = 1;
ecore_event_add(MMI_EVENT_CONNECTION, ev, NULL, user_data);
LOGI("...");
+ return;
+err:
+ if (ev)
+ free(ev);
}
static void _on_disconnected(rpc_port_proxy_mmifw_h h, void *user_data)