Browse Source

- missed memory leak in last commit

Ivan Savenko 15 năm trước cách đây
mục cha
commit
914212c9c1
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      hch/CAnimation.cpp

+ 1 - 0
hch/CAnimation.cpp

@@ -608,6 +608,7 @@ SDL_Surface * CAnimation::image(size_t frame, size_t group)
 
 void CAnimation::clear()
 {
+	unload();
 	entries.clear();
 }