[Kstars-devel] branches/kstars/summer/kstars/kstars/comast
Prakash Mohan
prak902000 at gmail.com
Thu Jul 30 00:14:49 CEST 2009
SVN commit 1004358 by prakash:
Prevent memory leak of the currentSession. Set the currentTarget to null on end session.
CCMAIL: kstars-devel at kde.org
M +2 -1 execute.cpp
--- branches/kstars/summer/kstars/kstars/comast/execute.cpp #1004357:1004358
@@ -249,7 +249,8 @@
ui.stackedWidget->setCurrentIndex(0);
logObject->observationList()->clear();
logObject->sessionList()->clear();
-
+ delete currentSession;
+ currentTarget = NULL;
}
void Execute::slotSetTarget( QString name ) {
More information about the Kstars-devel
mailing list