summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2009-11-09 19:05:50 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-03 17:19:59 +0200
commit74db5629bde5cf33f613a17cc3cdb3e2ba49233d (patch)
tree2e666089c330f5ffe2cdeaec5127c0c69cca57c7 /client
parent9b12f7ca8c4aa2c9b4d63f8ebd228992380c3976 (diff)
downloadspice-74db5629bde5cf33f613a17cc3cdb3e2ba49233d.tar.gz
spice-74db5629bde5cf33f613a17cc3cdb3e2ba49233d.tar.xz
spice-74db5629bde5cf33f613a17cc3cdb3e2ba49233d.zip
spice client: fixed missing AutoRef
Diffstat (limited to 'client')
-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()));
}