mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 22:17:51 +00:00
Update MemoryManager::delete_var to just issue a warning message when debug_level > 0. ref #595
This commit is contained in:
parent
f3be6c9ec0
commit
adf4482135
@ -9,9 +9,11 @@
|
||||
int Trick::MemoryManager::delete_var(void* address, bool destroy ) {
|
||||
|
||||
if (address == 0) {
|
||||
std::stringstream message;
|
||||
message << "Cannot delete memory at NULL.";
|
||||
emitError(message.str());
|
||||
if (debug_level) {
|
||||
std::stringstream message;
|
||||
message << "Cannot delete memory at NULL.";
|
||||
emitWarning(message.str());
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user