diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index 256c1581d..4c92ac495 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -104,7 +104,7 @@ Window::Window(ConfigController* config, int playerId, QWidget* parent) i = m_savedScale; } #ifdef USE_SQLITE3 - m_libraryView = new LibraryView(this); + m_libraryView = new LibraryView(); ConfigOption* showLibrary = m_config->addOption("showLibrary"); showLibrary->connect([this](const QVariant& value) { if (value.toBool()) { @@ -210,6 +210,10 @@ Window::~Window() { #ifdef USE_MAGICK delete m_gifView; #endif + +#ifdef USE_SQLITE3 + delete m_libraryView; +#endif } void Window::argumentsPassed(mArguments* args) {