diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index bbd200f1c..6c85f16ef 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -175,6 +175,7 @@ GameView::GameView(): isToolTipFadingIn(false), isButtonTipFadingIn(false), toolTipPosition(-1, -1), + saveSimulationButtonEnabled(false), shiftBehaviour(false), ctrlBehaviour(false), altBehaviour(false), diff --git a/src/simulation/Gravity.cpp b/src/simulation/Gravity.cpp index ff234a188..d3cd5e042 100755 --- a/src/simulation/Gravity.cpp +++ b/src/simulation/Gravity.cpp @@ -74,6 +74,7 @@ void Gravity::gravity_cleanup() free(gravx); free(gravp); free(gravmask); + free(obmap); } void Gravity::gravity_update_async()