diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2009-11-09 19:05:50 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-11-09 19:48:52 +0200 |
commit | 2e4d70980591f5d5c675de7461a462b7859080af (patch) | |
tree | c9cbd5ada2e591b0daa923b85b75d835cd761827 /client/red_client.cpp | |
parent | ec34856feadfb56971bc06f7da7ada67394440a8 (diff) | |
download | spice-2e4d70980591f5d5c675de7461a462b7859080af.tar.gz spice-2e4d70980591f5d5c675de7461a462b7859080af.tar.xz spice-2e4d70980591f5d5c675de7461a462b7859080af.zip |
spice client: fixed missing AutoRef
Diffstat (limited to 'client/red_client.cpp')
-rw-r--r-- | client/red_client.cpp | 3 |
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())); } |