diff options
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Converter/KX_ConvertActuators.cpp | 2 | ||||
-rw-r--r-- | source/gameengine/Converter/KX_ConvertControllers.cpp | 2 | ||||
-rw-r--r-- | source/gameengine/Converter/KX_ConvertSensors.cpp | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/source/gameengine/Converter/KX_ConvertActuators.cpp b/source/gameengine/Converter/KX_ConvertActuators.cpp index d7578c3f03f..b59c26ab90b 100644 --- a/source/gameengine/Converter/KX_ConvertActuators.cpp +++ b/source/gameengine/Converter/KX_ConvertActuators.cpp @@ -1122,6 +1122,8 @@ void BL_ConvertActuators(const char* maggiename, // done with baseact, release it baseact->Release(); } + else if (baseact) + baseact->Release(); bact = bact->next; } diff --git a/source/gameengine/Converter/KX_ConvertControllers.cpp b/source/gameengine/Converter/KX_ConvertControllers.cpp index cd7a560edad..0215b604fdd 100644 --- a/source/gameengine/Converter/KX_ConvertControllers.cpp +++ b/source/gameengine/Converter/KX_ConvertControllers.cpp @@ -240,6 +240,8 @@ void BL_ConvertControllers( //done with gamecontroller gamecontroller->Release(); } + else if (gamecontroller) + gamecontroller->Release(); bcontr = bcontr->next; } diff --git a/source/gameengine/Converter/KX_ConvertSensors.cpp b/source/gameengine/Converter/KX_ConvertSensors.cpp index 6ab382f7956..b3c6f6ddd24 100644 --- a/source/gameengine/Converter/KX_ConvertSensors.cpp +++ b/source/gameengine/Converter/KX_ConvertSensors.cpp @@ -640,6 +640,9 @@ void BL_ConvertSensors(struct Object* blenderobject, gamesensor->Release(); } + else if (gamesensor) + gamesensor->Release(); + sens=sens->next; } } |