From kde-devel Sun Mar 31 17:21:32 2002 From: Carsten Pfeiffer Date: Sun, 31 Mar 2002 17:21:32 +0000 To: kde-devel Subject: Re: [PATCH] b2client does not close on dbl click X-MARC-Message: https://marc.info/?l=kde-devel&m=101759529212373 On Sunday 31 March 2002 17:27, mikelima@virgilio.it wrote: > This other patch appears to work, and it should not leak anything. > KdeDefaultClient should be changed the same way, by the way. > + static QTime t; That would work in theory, but unfortunately, there is a bug in older glibcs, that may cause crashes when unloading the library. So I'd suggest either using a member variable or passing "this" as argument to the (heap-allocated) timer, so that it will be destroyed automatically when "this" is destroyed. Cheers Carsten Pfeiffer >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<