workaround for T543

this prevents crashing in efm:u2, but is really bad and needs to be fixed more competently before release
This commit is contained in:
Mike Blumenkrantz 2013-11-21 14:43:49 -05:00
parent c23ef6de3d
commit b663b5b8c7
1 changed files with 7 additions and 1 deletions

View File

@ -93,7 +93,7 @@ eldbus_proxy_shutdown(void)
static void _eldbus_proxy_event_callback_call(Eldbus_Proxy *proxy, Eldbus_Proxy_Event_Type type, const void *event_info);
static void _eldbus_proxy_context_event_cb_del(Eldbus_Proxy_Context_Event *ce, Eldbus_Proxy_Context_Event_Cb *ctx);
static void _on_signal_handler_free(void *data, const void *dead_pointer);
static void _props_get_all(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending);
static void
_eldbus_proxy_call_del(Eldbus_Proxy *proxy)
{
@ -143,6 +143,12 @@ _eldbus_proxy_clear(Eldbus_Proxy *proxy)
eldbus_pending_path_get(p),
eldbus_pending_interface_get(p),
eldbus_pending_method_get(p));
#warning THIS NEEDS TO BE FIXED BEFORE RELEASE
/* proxy is set as the callback data for this function.
* BAD!!!!!!!!
*/
if (p->cb == _props_get_all)
p->cb = NULL;
eldbus_pending_cancel(p);
}