[Kst] branches/work/kst/portto4/kst/src/libkst

Barth Netterfield netterfield at astro.utoronto.ca
Sat Jan 15 13:42:15 CET 2011


SVN commit 1214575 by netterfield:

Fix memory leak.



 M  +0 -1      datamatrix.cpp  
 M  +0 -2      datavector.cpp  


--- branches/work/kst/portto4/kst/src/libkst/datamatrix.cpp #1214574:1214575
@@ -367,7 +367,6 @@
       _fieldStrings.insert(key, sp = store()->createObject<String>());
       sp->setProvider(this);
       sp->setSlaveName(key);
-      sp->_KShared_ref();
     } else {  // find it
       sp = _fieldStrings[key];
     }
--- branches/work/kst/portto4/kst/src/libkst/datavector.cpp #1214574:1214575
@@ -657,7 +657,6 @@
       _fieldStrings.insert(key, sp);
       sp->setProvider(this);
       sp->setSlaveName(key);
-      sp->_KShared_ref();
     } else {  // find it
       sp = _fieldStrings[key];
     }
@@ -694,7 +693,6 @@
       _fieldScalars.insert(key, sp);
       sp->setProvider(this);
       sp->setSlaveName(key);
-      sp->_KShared_ref();
     } else {  // find it
       sp = _fieldScalars[key];
     }


More information about the Kst mailing list