mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-23 00:40:04 +00:00
Fix segfault on Linux closing the app
This commit is contained in:
parent
96ca735ed5
commit
89c3819784
@ -63,8 +63,7 @@ public:
|
||||
}
|
||||
|
||||
~Painter() {
|
||||
if (m_canvas)
|
||||
m_canvas->dispose();
|
||||
ASSERT(!m_canvas);
|
||||
}
|
||||
|
||||
void addRef() {
|
||||
@ -90,6 +89,10 @@ public:
|
||||
}
|
||||
|
||||
m_paintingThread.join();
|
||||
if (m_canvas) {
|
||||
m_canvas->dispose();
|
||||
m_canvas = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user