summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2009-11-09 19:05:50 +0200
committerYaniv Kamay <ykamay@redhat.com>2009-11-09 19:48:52 +0200
commit2e4d70980591f5d5c675de7461a462b7859080af (patch)
treec9cbd5ada2e591b0daa923b85b75d835cd761827
parentec34856feadfb56971bc06f7da7ada67394440a8 (diff)
downloadspice-2e4d70980591f5d5c675de7461a462b7859080af.tar.gz
spice-2e4d70980591f5d5c675de7461a462b7859080af.tar.xz
spice-2e4d70980591f5d5c675de7461a462b7859080af.zip
spice client: fixed missing AutoRef
-rw-r--r--client/red_client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp
index 969644c1..cf4562b3 100644
--- a/client/red_client.cpp
+++ b/client/red_client.cpp
@@ -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()));
}