Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix a memory leak in KisPlatformPluginInterfaceFactory
Dmitry Kazakov5ffc779e34b5
diff --git a/libs/ui/KisPlatformPluginInterfaceFactory.cpp b/libs/ui/KisPlatformPluginInterfaceFactory.cppindex bc9371ff3f..bf1e7a697e 100644--- a/libs/ui/KisPlatformPluginInterfaceFactory.cpp+++ b/libs/ui/KisPlatformPluginInterfaceFactory.cpp@@ -35,7 +35,7 @@ KisPlatformPluginInterfaceFactory::KisPlatformPluginInterfaceFactory()"Krita/PlatformPlugin");if (factory) {- auto interface = factory->create<KisSurfaceColorManagementInfo>();+ QScopedPointer<KisSurfaceColorManagementInfo> interface(factory->create<KisSurfaceColorManagementInfo>());return interface && interface->surfaceColorManagedByOS();}