Commit d072e07a authored by Tyler Wilson's avatar Tyler Wilson
Browse files

Cleaned up heap-allocated objects is qtie.cpp main routine that was causing a...

Cleaned up heap-allocated objects is qtie.cpp main routine that was causing a segfault because of the new Qt5 libraries IPCE uses.  Fixes #4471

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/branches/ipce@7179 41f8697f-d340-4b68-9986-7bafba869bb8
parent bdec1866
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -84,7 +84,22 @@ int main(int argc, char *argv[]) {

    vw->show();

    return app->exec();
    int status = app->exec();

    //Clean up the objects allocated onto the heap
   
    delete ftool;
    ftool = NULL;
    delete stool;
    stool = NULL;
    delete tieTool;
    tieTool = NULL;
    delete vw;
    vw = NULL;
    delete app;
    app = NULL;

    return status;
  }
  catch (IException &e) {
    e.print();
+5 −0
Original line number Diff line number Diff line
@@ -216,5 +216,10 @@
      Modified to use the CholMod sparse decomposition matrix solve method instead of the 
      "SpecialK" solve method (deprecated). Results are expected to be identical. References #4162.
    </change>
    <change name="Tyler Wilson" date="2016-10-19">
        Cleaned up heap allocated objects after the program returns in the main function of qtie.cpp.  
        This was not being done before like it is in  other qisis apps such as qnet and qview, 
        and was causing a segfault due to the new Qt5 libraries IPCE uses.  Fixes #4471.
   </change>
  </history>
</application>