Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2014-05-14 09:26:03 +0400
committerMitchell Stokes <mogurijin@gmail.com>2014-05-15 00:35:35 +0400
commit064ef3f00f286a5bb4b17c83cc8246c0ef0b123d (patch)
tree3a28b807128cf54cb2ae2bfc3413073c9eb87caa /source/gameengine/Ketsji/KX_GameObject.cpp
parent6b2689c3f2d2e0c4c684662de805440e48a2d67e (diff)
Fix T40182: Crash when using KX_GameObject.rayCast/rayCastTo().
Missed another parent->release().
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_GameObject.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp
index 9ea76980c20..9e8e58e9dfd 100644
--- a/source/gameengine/Ketsji/KX_GameObject.cpp
+++ b/source/gameengine/Ketsji/KX_GameObject.cpp
@@ -3253,8 +3253,6 @@ KX_PYMETHODDEF_DOC(KX_GameObject, rayCastTo,
KX_GameObject *parent = GetParent();
if (!spc && parent)
spc = parent->GetPhysicsController();
- if (parent)
- parent->Release();
m_pHitObject = NULL;
if (propName)
@@ -3399,8 +3397,6 @@ KX_PYMETHODDEF_DOC(KX_GameObject, rayCast,
KX_GameObject *parent = GetParent();
if (!spc && parent)
spc = parent->GetPhysicsController();
- if (parent)
- parent->Release();
m_pHitObject = NULL;
if (propName)