From 0bdb2c129c586121e4247713d720e0ae69ad7c6b Mon Sep 17 00:00:00 2001 From: Marcel Fransen Date: Tue, 8 Oct 2024 09:39:57 +0200 Subject: [PATCH] [Power] Fix restart issue --- Power/PowerImplementation/Linux/PowerImplementation.cpp | 1 + examples/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Power/PowerImplementation/Linux/PowerImplementation.cpp b/Power/PowerImplementation/Linux/PowerImplementation.cpp index af0301b75..033b00980 100644 --- a/Power/PowerImplementation/Linux/PowerImplementation.cpp +++ b/Power/PowerImplementation/Linux/PowerImplementation.cpp @@ -273,6 +273,7 @@ void power_deinitialize() { if (implementation != nullptr) { delete implementation; + implementation = nullptr; } } diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 10480391c..0bb55862d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -24,7 +24,7 @@ find_package(Thunder) project_version(1.0.0) message("Setup ${PROJECT_NAME} v${PROJECT_VERSION}") -option(EXAMPLE_COMRPCCLIENT"Include COMRPCClient example" OFF) +option(EXAMPLE_COMRPCCLIENT "Include COMRPCClient example" OFF) option(PLUGIN_JSONRPC "Include JSONRPCExamplePlugin plugin" OFF) option(PLUGIN_FILETRANSFER "Include FileTransfer plugin" OFF) option(PLUGIN_OUTOFPROCESS "Include OutOfProcess plugin" OFF)