fixed a few serialisation issues

This commit is contained in:
Cyril Soler 2016-01-13 12:22:55 -05:00
parent 96f3446aa7
commit 086b076477
2 changed files with 14 additions and 3 deletions

View file

@ -349,6 +349,12 @@ RsGRouterGenericDataItem *RsGRouterGenericDataItem::duplicate() const
if(data_size > 0)
{
item->data_bytes = (uint8_t*)rs_malloc(data_size) ;
if(item->data_bytes == NULL)
{
delete item ;
return NULL ;
}
memcpy(item->data_bytes,data_bytes,data_size) ;
}
else