From 5140ab7f03d5d37a46353b0aebf35202feabf423 Mon Sep 17 00:00:00 2001 From: Roger Ferrer Ibanez Date: Fri, 16 Aug 2024 06:28:49 +0200 Subject: [PATCH] Do not manually delete the image --- src/application.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/application.cpp b/src/application.cpp index 366c747..9494562 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -205,13 +205,8 @@ void Application::on_about() { about->set_hide_on_close(); about->signal_hide().connect( - [about, logo]() mutable { - if (logo) { - logo->unreference(); - logo = nullptr; - } + [about]() mutable { delete about; - about = nullptr; }, false);