Add the PluginHeapHandle as an argument instead of using the global variable

This commit is contained in:
Maschell
2020-05-03 14:14:22 +02:00
parent 037e1f2ce8
commit ead8b14f98
2 changed files with 5 additions and 4 deletions

View File

@@ -50,6 +50,7 @@ PluginData::PluginData(std::vector<uint8_t> input, MEMHeapHandle heapHandle, eMe
default:
case eMemTypeExpHeap:
data_copy = MEMAllocFromExpHeapEx(heapHandle, length, 4);
DEBUG_FUNCTION_LINE("Allocated %d kb from ExpHeap", length / 1024);
if (data_copy == NULL) {
DEBUG_FUNCTION_LINE("Failed to allocate space on exp heap");
} else {