mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 00:23:35 +00:00
Fix a bug using fop->format when it's NULL in fop_free() (introduced in previous commit).
This commit is contained in:
parent
c32551db64
commit
7471229840
@ -616,7 +616,8 @@ void fop_stop(FileOp *fop)
|
||||
|
||||
void fop_free(FileOp *fop)
|
||||
{
|
||||
fop->format->destroyData(fop);
|
||||
if (fop->format)
|
||||
fop->format->destroyData(fop);
|
||||
|
||||
if (fop->seq.palette != NULL)
|
||||
delete fop->seq.palette;
|
||||
|
Loading…
Reference in New Issue
Block a user