[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri May 23 01:17:43 CEST 2003
CVS commit by staikos:
don't double delete
M +10 -0 kstplugin.cpp 1.14
M +2 -0 kstplugindialog_i.cpp 1.20
--- kdeextragear-2/kst/kst/kstplugin.cpp #1.13:1.14
@@ -62,4 +62,6 @@ void KstPlugin::commonConstructor() {
_inputVectors.disableAutoDelete();
_outputVectors.disableAutoDelete();
+ _inputScalars.setAutoDelete(false);
+ _outputScalars.setAutoDelete(false);
kdDebug() << "Creating KSTPlugin: " << long(this) << endl;
}
@@ -148,4 +150,8 @@ void KstPlugin::update(int update_counte
}
+ for (unsigned i = 0; i < inScalarCnt; i++) {
+ inScalars[i] = _inputScalars.at(i)->v();
+ }
+
for (unsigned i = 0; i < outArrayCnt; i++) {
outVectors[i] = _outputVectors.atS(i)->data();
@@ -162,4 +168,8 @@ void KstPlugin::update(int update_counte
for (unsigned i = 0; i < outArrayCnt; i++) {
_outputVectors.atS(i)->changeV(outVectors[i], outArrayLens[i]);
+ }
+
+ for (unsigned i = 0; i < outScalarCnt; i++) {
+ _outputScalars.at(i)->setV(outScalars[i]);
}
--- kdeextragear-2/kst/kst/kstplugindialog_i.cpp #1.19:1.20
@@ -392,4 +392,6 @@ void KstPluginDialogI::edit_I() {
iv.disableAutoDelete();
ov.disableAutoDelete();
+ is.setAutoDelete(false);
+ os.setAutoDelete(false);
// Save the inputs and outputs temporarily, clear the old list
More information about the Kst
mailing list