[gnome-boxes/gnome-3-8] vm-creator: Make sure to clean up installer media
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-8] vm-creator: Make sure to clean up installer media
- Date: Tue, 28 May 2013 09:08:04 +0000 (UTC)
commit 6504439851fe02b2f48846d9c65e307491de1ab7
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue May 21 02:33:26 2013 +0300
vm-creator: Make sure to clean up installer media
https://bugzilla.gnome.org/show_bug.cgi?id=700470
src/vm-creator.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index 1529199..3bcdd02 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -15,6 +15,11 @@ private class Boxes.VMCreator {
private uint num_reboots { get; private set; }
+ ~VMCreator () {
+ if (install_media != null)
+ install_media.clean_up ();
+ }
+
public VMCreator (InstallerMedia install_media) {
this.install_media = install_media;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]