[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Sat Jun 5 04:38:02 CEST 2004


CVS commit by netterfield: 

A recent commit to the line changed here produced an impressive crash.
This manually reverts it...


  M +3 -1      kstsharedptr.h   1.4


--- kdeextragear-2/kst/kst/kstsharedptr.h  #1.3:1.4
@@ -52,5 +52,7 @@ public:
     * the count goes to 0, this object will delete itself.
     */
-   void _KShared_unref() const { sem--;  if (sem.total() == sem.available()) delete this; }
+   // THE COMMENTED LINE BELOW CAUSED IMPRESSIVE CRASH.  Reverted for now... Andrew?
+   //void _KShared_unref() const { sem--;  if (sem.total() == sem.available()) delete this; }
+   void _KShared_unref() const { sem--;  if (sem.total() == 0) delete this; }
 
    /**





More information about the Kst mailing list