From 04bfc4cada59392e9ede3f27570917da50505499 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Mon, 19 Oct 2009 04:52:40 +0000 Subject: [PATCH] Display an error message when a deleted client has a non-zero reference count. CCBUG: 209723 svn path=/trunk/KDE/kdebase/workspace/; revision=1037431 --- deleted.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deleted.cpp b/deleted.cpp index 2a29013b89..e5fef3d833 100644 --- a/deleted.cpp +++ b/deleted.cpp @@ -40,6 +40,8 @@ Deleted::Deleted( Workspace* ws ) Deleted::~Deleted() { + if( delete_refcount != 0 ) + kError(1212) << "Deleted client has non-zero reference count (" << delete_refcount << ")"; assert( delete_refcount == 0 ); workspace()->removeDeleted( this, Allowed ); deleteEffectWindow();