mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-01 22:25:17 +02:00
Guard against disposed source bitmaps in Bitmap::addFrame
This commit is contained in:
parent
130375b6d8
commit
347ef9f53c
1 changed files with 1 additions and 0 deletions
|
@ -2388,6 +2388,7 @@ int Bitmap::currentFrameI() const
|
||||||
int Bitmap::addFrame(Bitmap &source, int position)
|
int Bitmap::addFrame(Bitmap &source, int position)
|
||||||
{
|
{
|
||||||
guardDisposed();
|
guardDisposed();
|
||||||
|
source.guardDisposed();
|
||||||
|
|
||||||
GUARD_MEGA;
|
GUARD_MEGA;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue