Skip to content

Commit

Permalink
- static objects are deallocated when the application exits.
Browse files Browse the repository at this point in the history
- delete in OmcInteractiveEnvironment::OMCVersion() removed. 
- commented out the code in the destructor.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@3815 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Jan 24, 2009
1 parent ecb352e commit a4732e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OMNotebook/OMNotebookQT4/omcinteractiveenvironment.cpp
Expand Up @@ -86,8 +86,8 @@ namespace IAEX

OmcInteractiveEnvironment::~OmcInteractiveEnvironment()
{
if (selfInstance)
delete selfInstance;
//if (selfInstance)
// delete selfInstance;
}

QString OmcInteractiveEnvironment::getResult()
Expand Down Expand Up @@ -327,7 +327,7 @@ namespace IAEX
env->evalExpression( getVersion );
version = env->getResult();
version.remove( "\"" );
delete env;
//delete env;
}
catch( exception &e )
{
Expand Down

0 comments on commit a4732e2

Please sign in to comment.