Skip to content

Commit

Permalink
Fix delete in texture (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 authored Jan 12, 2025
1 parent 9a974e0 commit 31df12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resource/type/Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ size_t Texture::GetPointerSize() {

Texture::~Texture() {
if (ImageData != nullptr) {
delete ImageData;
delete[] ImageData;
}
}
} // namespace Fast

0 comments on commit 31df12c

Please sign in to comment.