Commit 76713923 authored by whitlocb's avatar whitlocb

Fixed some small Libsim memory leaks and Fortran issues.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@26466 18c085ea-50e0-402c-830e-de6fd14e8384
parent 390ffcb5
......@@ -1177,6 +1177,8 @@ avtDatabaseWriter::CreateSinglePolyData(avtDataTree_p root)
// Convert all datasets into polydata.
std::vector<vtkPolyData *> pds = ConvertDatasetsIntoPolyData(ds, nds);
if(ds != NULL)
delete [] ds;
// Send the polydatas to rank 0.
std::vector<vtkPolyData *> allpds = SendPolyDataToRank0(pds);
......
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>VisIt 2.9.2 Release Notes</title>
</head>
<body>
<center><b><font size="6">VisIt 2.9.2 Release Notes</font></b></center>
<p>Welcome to VisIt's release notes page. This page describes the important
enhancements and bug-fixes that were added to this release.</p>
<p><b>Sections</b></p>
<ul>
<li><a href="#Bugs_fixed">Bug Fixes</a></li>
<li><a href="#Enhancements">Enhancements</a></li>
<li><a href="#Dev_changes">Changes for VisIt developers</a></li>
</ul>
<a name="Bugs_fixed"></a>
<p><b><font size="4">Bugs fixed in version 2.9.2</font></b></p>
<ul>
<li>The Fortran bindings for Libsim has been corrected so the <i>visitsetupenv2</i> and <i>visitgetenv</i> functions are named appropriately.</li>
<li>Some small memory leaks in Libsim's batch mode have been corrected.</li>
</ul>
<a name="Enhancements"></a>
<p><b><font size="4">Enhancements in version 2.9.2</font></b></p>
<ul>
<li></li>
<li></li>
</ul>
<a name="Dev_changes"></a>
<p><b><font size="4">Changes for VisIt developers in version 2.9.2</font></b></p>
<ul>
<li></li>
</ul>
<p>Click the following link to view the release notes for the previous version
of VisIt: <a href=relnotes2.9.1.html>2.9.1</a>.</p>
</body>
</html>
......@@ -18,6 +18,9 @@
#ifdef _INCLUDE_HPUX_SOURCE /* HPUX */
#define F77_ID(x_, x, X) x
#endif
#ifdef VISIT_BLUE_GENE_Q /* BlueGene/Q */
#define F77_ID(x_, x, X) x
#endif
#ifndef F77_ID
#define F77_ID(x_, x, X) x_
#endif
......
......@@ -209,6 +209,8 @@ f_visit_internal_InstallCallbacks(void)
#define F_VISITSETPARALLEL F77_ID(visitsetparallel_,visitsetparallel,VISITSETPARALLEL)
#define F_VISITSETPARALLELRANK F77_ID(visitsetparallelrank_,visitsetparallelrank,VISITSETPARALLELRANK)
#define F_VISITSETUPENV F77_ID(visitsetupenv_,visitsetupenv,VISITSETUPENV)
#define F_VISITSETUPENV2 F77_ID(visitsetupenv2_,visitsetupenv2,VISITSETUPENV2)
#define F_VISITGETENV F77_ID(visitgetenv_,visitgetenv,VISITGETENV)
#define F_VISITSYNCHRONIZE F77_ID(visitsynchronize_,visitsynchronize,VISITSYNCHRONIZE)
#define F_VISITTIMESTEPCHANGED F77_ID(visittimestepchanged_,visittimestepchanged,VISITTIMESTEPCHANGED)
#define F_VISITUPDATEPLOTS F77_ID(visitupdateplots_,visitupdateplots,VISITUPDATEPLOTS)
......
......@@ -170,6 +170,21 @@ SimEngine::SimEngine() : Engine()
SimEngine::~SimEngine()
{
#ifdef SIMV2_VIEWER_INTEGRATION
if(!viewerInitialized)
{
delete ViewerBase::GetPlotFactory();
delete ViewerBase::GetOperatorFactory();
delete ViewerBase::GetViewerProperties();
delete ViewerBase::GetViewerState();
delete ViewerBase::GetViewerMethods();
delete ViewerBase::GetViewerStateManager();
delete ViewerBase::GetViewerMessaging();
delete ViewerBase::GetViewerFileServer();
delete ViewerBase::GetViewerEngineManager();
}
#endif
}
// ****************************************************************************
......
......@@ -813,7 +813,10 @@ simv2_exportdatabase(void *e, const char *filename, const char *format,
if(simv2_NameList_getName(names, i, &var) == VISIT_OKAY)
{
if(var != NULL)
varNames.push_back(var);
{
varNames.push_back(var);
free(var); // simv2_NameList_getName used malloc.
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment