From d438153d735195da836497d4237da7aa44ba1725 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 21 Nov 2016 08:05:08 +0100 Subject: [PATCH 1/1] don't let the impl mess up with the fields of the interface --- src/plugins/vm/VirtualMachineImpl.cpp | 2 -- src/plugins/vm/s4u_VirtualMachine.cpp | 1 - 2 files changed, 3 deletions(-) diff --git a/src/plugins/vm/VirtualMachineImpl.cpp b/src/plugins/vm/VirtualMachineImpl.cpp index b3042e7478..931e00c1ab 100644 --- a/src/plugins/vm/VirtualMachineImpl.cpp +++ b/src/plugins/vm/VirtualMachineImpl.cpp @@ -142,8 +142,6 @@ VirtualMachineImpl::~VirtualMachineImpl() /* Free the cpu_action of the VM. */ XBT_ATTRIB_UNUSED int ret = action_->unref(); xbt_assert(ret == 1, "Bug: some resource still remains"); - - delete piface_->pimpl_cpu; } e_surf_vm_state_t VirtualMachineImpl::getState() diff --git a/src/plugins/vm/s4u_VirtualMachine.cpp b/src/plugins/vm/s4u_VirtualMachine.cpp index 13357ef955..f1c99cd321 100644 --- a/src/plugins/vm/s4u_VirtualMachine.cpp +++ b/src/plugins/vm/s4u_VirtualMachine.cpp @@ -57,7 +57,6 @@ VirtualMachine::~VirtualMachine() extension_set(nullptr); /* Don't free these things twice: they are the ones of my physical host */ - pimpl_cpu = nullptr; pimpl_netcard = nullptr; } -- 2.20.1