From bbfeaf78ee634c24bd7fcb1c7faff207473e71e4 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sat, 5 Mar 2022 16:25:28 +1100 Subject: Feature [feature-requests:#1432] Remove redundant calls to DropGraphics. InvalidateStyleRedraw calls DropGraphics and the unique_ptr destructors will ensure that the pixmaps are destroyed when Editor is destroyed. --- src/Editor.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index ccf07b6a8..34fcd4220 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -204,7 +204,6 @@ Editor::Editor() : durationWrapOneByte(0.000001, 0.00000001, 0.00001) { Editor::~Editor() { pdoc->RemoveWatcher(this, nullptr); - DropGraphics(); } void Editor::Finalise() { -- cgit v1.2.3