1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-08-16 00:20:23 +03:00

Dispose renderer when DrawingView is deinit.

This commit is contained in:
Michal Smialko 2021-09-04 19:34:49 +02:00
parent 2b406e55f2
commit a64088b64b

View File

@ -671,6 +671,12 @@ internal class DrawingView: MView {
recognizersMap.removeValue(forKey: recognizer)
}
}
// MARK: - Cleanup
deinit {
renderer?.dispose()
}
}
class LayoutHelper {