[gnome-boxes] spice-display: Disconnect channel signal handlers
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] spice-display: Disconnect channel signal handlers
- Date: Tue, 4 Aug 2015 22:42:44 +0000 (UTC)
commit fe8191f6ea20cf351bb84a2a95cea097654d1196
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue May 12 17:51:50 2015 +0100
spice-display: Disconnect channel signal handlers
Let's ensure channel signal handlers are disconnected and their IDs
cleared on disconnection.
https://bugzilla.gnome.org/show_bug.cgi?id=746800
src/spice-display.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/spice-display.vala b/src/spice-display.vala
index c4a86e7..87e6ea1 100644
--- a/src/spice-display.vala
+++ b/src/spice-display.vala
@@ -253,6 +253,14 @@ private class Boxes.SpiceDisplay: Boxes.Display {
}
public override void disconnect_it () {
+ if (channel_new_id > 0) {
+ (session as GLib.Object).disconnect (channel_new_id);
+ channel_new_id = 0;
+ }
+ if (channel_destroy_id > 0) {
+ (session as GLib.Object).disconnect (channel_destroy_id);
+ channel_destroy_id = 0;
+ }
session.disconnect ();
main_cleanup ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]