Browse Source

clear floating pointer

David Rose 22 years ago
parent
commit
0ff53d1ec1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/pgraph/transformState.cxx

+ 1 - 0
panda/src/pgraph/transformState.cxx

@@ -87,6 +87,7 @@ TransformState::
   // Free the inverse matrix computation, if it has been stored.
   if (_inv_mat != (LMatrix4f *)NULL) {
     delete _inv_mat;
+    _inv_mat = (LMatrix4f *)NULL;
   }
 
   // Remove the deleted TransformState object from the global pool.