mirror of
https://github.com/nasa/trick.git
synced 2025-04-07 19:34:23 +00:00
commit
333a5d75ef
@ -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…
x
Reference in New Issue
Block a user