kwin: disconnect KSelectionOwner signals before deleting it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-11-03 08:20:49 +02:00
parent c12e4a7b97
commit bc640da8f2

View file

@ -127,7 +127,10 @@ Compositor::~Compositor()
{
finish();
deleteUnusedSupportProperties();
delete cm_selection;
if (cm_selection) {
disconnect(cm_selection, 0, this, 0);
delete cm_selection;
}
s_compositor = NULL;
}