Added missing hdimage->close() in destructor.
This commit is contained in:
parent
98bc3bdf16
commit
16358f9c54
@ -6,7 +6,7 @@
|
||||
//
|
||||
// Copyright (c) 2006 CodeSourcery.
|
||||
// Written by Paul Brook
|
||||
// Copyright (C) 2009-2014 The Bochs Project
|
||||
// Copyright (C) 2009-2015 The Bochs Project
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
@ -303,6 +303,7 @@ usb_msd_device_c::~usb_msd_device_c(void)
|
||||
if (s.scsi_dev != NULL)
|
||||
delete s.scsi_dev;
|
||||
if (s.hdimage != NULL) {
|
||||
s.hdimage->close();
|
||||
delete s.hdimage;
|
||||
} else if (s.cdrom != NULL) {
|
||||
delete s.cdrom;
|
||||
|
Loading…
Reference in New Issue
Block a user