mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-21 23:38:54 -04:00
Core/Misc: Fix some issues detected by static analysis
* Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? -> This argument is passed by value, it makes no sence so set it to null here. * Member variable 'instance_violet_hold_InstanceMapScript::bWiped' is not initialized in the constructor. * Mismatching allocation and deallocation: Data
This commit is contained in:
@@ -54,9 +54,10 @@ namespace Battlenet
|
||||
memcpy(Data, right.Data, DataSize);
|
||||
}
|
||||
}
|
||||
|
||||
~ModuleInfo()
|
||||
{
|
||||
delete Data;
|
||||
delete[] Data;
|
||||
}
|
||||
|
||||
std::string Type;
|
||||
|
||||
Reference in New Issue
Block a user