[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kst/portto4/kst/src/libkst
From:       Barth Netterfield <netterfield () astro ! utoronto ! ca>
Date:       2011-01-15 12:42:15
Message-ID: 20110115124215.D38E63E1F1 () svn ! kde ! org
[Download RAW message or body]

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];
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic