소스 검색

[c] Incorrect deallocation order, closes #913

badlogic 8 년 전
부모
커밋
928f4b8e14
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      spine-c/spine-c/src/spine/AnimationState.c

+ 1 - 1
spine-c/spine-c/src/spine/AnimationState.c

@@ -236,8 +236,8 @@ void spAnimationState_dispose (spAnimationState* self) {
 	_spEventQueue_free(internal->queue);
 	FREE(internal->events);
 	FREE(internal->propertyIDs);
-    FREE(internal);
 	spTrackEntryArray_dispose(self->mixingTo);
+    FREE(internal);
 }
 
 void spAnimationState_update (spAnimationState* self, float delta) {