mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 23:42:57 +00:00
Fix memory leak in load_document()
This commit is contained in:
parent
9fd9ea365f
commit
fa54bb1950
@ -95,8 +95,6 @@ Doc* load_document(Context* context, const std::string& filename)
|
||||
}
|
||||
|
||||
Doc* document = fop->releaseDocument();
|
||||
fop.release();
|
||||
|
||||
if (document && context)
|
||||
document->setContext(context);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user