[gnome-boxes/gnome-3-12] wizard: Do a more thorough cleanup
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-12] wizard: Do a more thorough cleanup
- Date: Tue, 25 Mar 2014 17:35:22 +0000 (UTC)
commit 0a7a9dc86a7f31da7b0871495e5bdc382174ef49
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Mar 25 15:17:33 2014 +0000
wizard: Do a more thorough cleanup
Clean-up all state in cleanup() method.
https://bugzilla.gnome.org/show_bug.cgi?id=726967
src/wizard-source.vala | 7 +++++++
src/wizard.vala | 3 +++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index 9eae31a..a228d97 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -169,6 +169,13 @@ private class Boxes.WizardSource: Gtk.Stack {
transition_type = Gtk.StackTransitionType.SLIDE_LEFT_RIGHT; // FIXME: Why this won't work from .ui
file?
}
+ public void cleanup () {
+ install_media = null;
+ libvirt_sys_import = false;
+ selected = null;
+ uri = "";
+ }
+
[GtkCallback]
private void on_enter_url_button_clicked () {
page = SourcePage.URL;
diff --git a/src/wizard.vala b/src/wizard.vala
index 0af06cd..fe48f0a 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -191,6 +191,9 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
public void cleanup () {
destroy_machine ();
+ vm_creator = null;
+ source = null;
+ wizard_source.cleanup ();
}
private async bool create () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]