[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Sat Jun 5 01:15:39 CEST 2004
CVS commit by arwalker:
Delete the object when we're finished with it.
M +1 -1 kstsharedptr.h 1.3
--- kdeextragear-2/kst/kst/kstsharedptr.h #1.2:1.3
@@ -52,5 +52,5 @@ public:
* the count goes to 0, this object will delete itself.
*/
- void _KShared_unref() const { sem--; if (sem.total() == 0) delete this; }
+ void _KShared_unref() const { sem--; if (sem.total() == sem.available()) delete this; }
/**
More information about the Kst
mailing list