mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-08 03:42:09 +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)) {
|
frames(new std::vector<frame_t>(frames)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~FramesObj() {
|
||||||
|
delete frames;
|
||||||
|
}
|
||||||
|
|
||||||
FramesObj(const FramesObj&) = delete;
|
FramesObj(const FramesObj&) = delete;
|
||||||
FramesObj& operator=(const FramesObj&) = delete;
|
FramesObj& operator=(const FramesObj&) = delete;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user