mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 03:32:48 +00:00
Avoid deadlock of ClosedDocs and SpriteObserver
This commit is contained in:
parent
1f9c2e8987
commit
8c902dd8fc
@ -169,14 +169,6 @@ public:
|
||||
doc()->add_observer(this);
|
||||
}
|
||||
|
||||
~SpriteEvents() {
|
||||
if (m_observingUndo) {
|
||||
doc()->undoHistory()->remove_observer(this);
|
||||
m_observingUndo = false;
|
||||
}
|
||||
doc()->remove_observer(this);
|
||||
}
|
||||
|
||||
EventType eventType(const char* eventName) const {
|
||||
if (std::strcmp(eventName, "change") == 0)
|
||||
return Change;
|
||||
|
Loading…
x
Reference in New Issue
Block a user