mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 05:42:32 +00:00
Fix crash when a document cannot be loaded
This commit is contained in:
parent
9135461627
commit
e1a4a8b09f
@ -111,7 +111,7 @@ Document* load_document(Context* context, const char* filename)
|
|||||||
document = fop->document;
|
document = fop->document;
|
||||||
fop_free(fop);
|
fop_free(fop);
|
||||||
|
|
||||||
if (context)
|
if (document && context)
|
||||||
document->setContext(context);
|
document->setContext(context);
|
||||||
|
|
||||||
return document;
|
return document;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user