Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp	(revision 64754)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp	(revision 64755)
@@ -156,4 +156,5 @@
             m_pMachineLogic->cleanup();
             UIMachineLogic::destroy(m_pMachineLogic);
+            m_pMachineLogic = 0;
         }
 
@@ -278,8 +279,9 @@
 
     /* Destroy machine-logic if exists: */
-    if (machineLogic())
+    if (m_pMachineLogic)
     {
         m_pMachineLogic->cleanup();
         UIMachineLogic::destroy(m_pMachineLogic);
+        m_pMachineLogic = 0;
     }
 }
