diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2009-11-09 19:05:50 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2010-01-03 17:19:59 +0200 |
commit | 74db5629bde5cf33f613a17cc3cdb3e2ba49233d (patch) | |
tree | 2e666089c330f5ffe2cdeaec5127c0c69cca57c7 /client/red_client.cpp | |
parent | 9b12f7ca8c4aa2c9b4d63f8ebd228992380c3976 (diff) | |
download | spice-74db5629bde5cf33f613a17cc3cdb3e2ba49233d.tar.gz spice-74db5629bde5cf33f613a17cc3cdb3e2ba49233d.tar.xz spice-74db5629bde5cf33f613a17cc3cdb3e2ba49233d.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())); } |