Fix segv in bus_engine_proxy_process_key_event_reply_cb
authorfujiwarat <takao.fujiwara1@gmail.com>
Thu, 2 Sep 2010 03:58:42 +0000 (12:58 +0900)
committerPeng Huang <shawn.p.huang@gmail.com>
Mon, 6 Sep 2010 09:03:09 +0000 (17:03 +0800)
bus/engineproxy.c

index adda91c9dacc3380b0d7c85b4b5a1912d4275f4c..64dda4fc244b65c183bfc1850b54ac2e5f7b936b 100644 (file)
@@ -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);