Display an error message when a deleted client has a non-zero reference

count.
CCBUG: 209723

svn path=/trunk/KDE/kdebase/workspace/; revision=1037431
This commit is contained in:
Lucas Murray 2009-10-19 04:52:40 +00:00
parent 64b80fc1fe
commit 04bfc4cada

View file

@ -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();