diff --git a/ext/libclementine-common/core/closure.h b/ext/libclementine-common/core/closure.h index ca0081109..63ed9936b 100644 --- a/ext/libclementine-common/core/closure.h +++ b/ext/libclementine-common/core/closure.h @@ -100,6 +100,7 @@ class Closure : public ClosureBase { const int index = meta_receiver->indexOfSlot(normalised_slot.constData()); Q_ASSERT(index != -1); slot_ = meta_receiver->method(index); + QObject::connect(receiver_, SIGNAL(destroyed()), helper_, SLOT(deleteLater())); } virtual void Invoke() {