aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/global_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstate/global_state.cpp')
-rw-r--r--src/libstate/global_state.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstate/global_state.cpp b/src/libstate/global_state.cpp
index 0ffb49fdc..00b71039f 100644
--- a/src/libstate/global_state.cpp
+++ b/src/libstate/global_state.cpp
@@ -62,7 +62,10 @@ bool set_global_state_unless_set(Library_State* new_state)
return false;
}
else
+ {
delete swap_global_state(new_state);
+ return true;
+ }
}
/*