mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
lua: Fix memory leak when using Range.frames
This commit is contained in:
parent
3211bc67b1
commit
d3de65c9dd
@ -34,6 +34,10 @@ struct FramesObj {
|
||||
frames(new std::vector<frame_t>(frames)) {
|
||||
}
|
||||
|
||||
~FramesObj() {
|
||||
delete frames;
|
||||
}
|
||||
|
||||
FramesObj(const FramesObj&) = delete;
|
||||
FramesObj& operator=(const FramesObj&) = delete;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user