aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libstate.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstate.cpp b/src/libstate.cpp
index 546e11c90..114b88682 100644
--- a/src/libstate.cpp
+++ b/src/libstate.cpp
@@ -31,8 +31,7 @@ Library_State& global_state()
void set_global_state(Library_State* new_state)
{
- delete global_lib_state;
- global_lib_state = new_state;
+ delete swap_global_state(new_state);
}
Library_State* swap_global_state(Library_State* new_state)