aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kconfig_compiler/kconfig_compiler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp
index 8bcaaf35..4494e454 100644
--- a/src/kconfig_compiler/kconfig_compiler.cpp
+++ b/src/kconfig_compiler/kconfig_compiler.cpp
@@ -2595,10 +2595,10 @@ int main(int argc, char **argv)
// Destructor
cpp << cfg.className << "::~" << cfg.className << "()" << endl;
cpp << "{" << endl;
+ if (cfg.dpointer) {
+ cpp << " delete d;" << endl;
+ }
if (cfg.singleton) {
- if (cfg.dpointer) {
- cpp << " delete d;" << endl;
- }
cpp << " s_global" << cfg.className << "()->q = 0;" << endl;
}
cpp << "}" << endl << endl;