mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 01:10:35 +05:00
memory leaks
This commit is contained in:
parent
096a139769
commit
4a8f4b4c1c
@ -153,11 +153,11 @@ namespace
|
|||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
if ( msgLen > 0 ) {
|
if ( msgLen > 0 ) {
|
||||||
#if defined( WIN32 ) && defined( UNICODE )
|
# if defined( UNICODE )
|
||||||
error = Kernel_Utils::encode((wchar_t*)cstr);
|
error = Kernel_Utils::encode_s((wchar_t*)cstr);
|
||||||
#else
|
# else
|
||||||
error = (char*)cstr;
|
error = (char*)cstr;
|
||||||
#endif
|
# endif
|
||||||
LocalFree(cstr);
|
LocalFree(cstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,7 +277,7 @@ namespace
|
|||||||
SMESH_File resultFile( outFile, /*open=*/false );
|
SMESH_File resultFile( outFile, /*open=*/false );
|
||||||
bool ok = ( resultFile.exists() && resultFile.size() > 0 );
|
bool ok = ( resultFile.exists() && resultFile.size() > 0 );
|
||||||
|
|
||||||
if (ok)
|
if ( ok )
|
||||||
libraryFile._name = outFile;
|
libraryFile._name = outFile;
|
||||||
else
|
else
|
||||||
error = "Can't download file " + url;
|
error = "Can't download file " + url;
|
||||||
@ -365,13 +365,13 @@ namespace SMESHUtils_MGLicenseKeyGen // API implementation
|
|||||||
|
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
typedef bool (*SignFun)(void* );
|
typedef bool (*SignFun)(void* );
|
||||||
SignFun signFun = (SignFun) GetProc( theLibraryHandle, "SignCAD" );
|
SignFun signFun = (SignFun) GetProc( theLibraryHandle, "SignCAD" );
|
||||||
if ( !signFun )
|
if ( !signFun )
|
||||||
{
|
{
|
||||||
if ( ! getLastError( error ))
|
if ( ! getLastError( error ))
|
||||||
error = SMESH_Comment( "Can't find symbol 'SignCAD' in '") << getenv( theEnvVar ) << "'";
|
error = SMESH_Comment( "Can't find symbol 'SignCAD' in '") << getenv( theEnvVar ) << "'";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
SMESH_TRY;
|
SMESH_TRY;
|
||||||
|
Loading…
Reference in New Issue
Block a user