spice client: fixed missing AutoRef

This commit is contained in:
Yonit Halperin 2009-11-09 19:05:50 +02:00 committed by Yaniv Kamay
parent ec34856fea
commit 2e4d709805

View File

@ -328,7 +328,8 @@ void RedClient::on_connecting()
void RedClient::on_connect()
{
push_event(new ConnectedEvent());
AutoRef<ConnectedEvent> event(new ConnectedEvent());
push_event(*event);
_migrate.add_channel(new MigChannel(RED_CHANNEL_MAIN, 0, get_common_caps(),
get_caps()));
}