Add missing copy constructors

This commit is contained in:
Maschell
2020-05-17 20:43:04 +02:00
parent 7247ad3093
commit 3b9f4a9a51
7 changed files with 49 additions and 0 deletions

View File

@@ -1,5 +1,14 @@
#include "PluginData.h"
PluginData::PluginData(const PluginData &obj) {
this->buffer = obj.buffer;
this->heapHandle = obj.heapHandle;
this->memoryType = obj.memoryType;
this->length = obj.length;
loadReader();
}
void PluginData::freeMemory() {
if (buffer == NULL) {
return;