Skip to content

Commit

Permalink
Fix segv in bus_engine_proxy_process_key_event_reply_cb
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwarat authored and phuang committed Sep 6, 2010
1 parent 0b8d959 commit 85565b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bus/engineproxy.c
Expand Up @@ -564,7 +564,9 @@ bus_engine_proxy_process_key_event_reply_cb (IBusPendingCall *pending,
/* reply timeout */
IBusObject *connection;
connection = (IBusObject *) ibus_proxy_get_connection ((IBusProxy *)call_data->engine);
ibus_object_destroy (connection);
if (connection) {
ibus_object_destroy (connection);
}
}
g_warning ("%s: %s", error->name, error->message);
ibus_error_free (error);
Expand Down

0 comments on commit 85565b7

Please sign in to comment.