Fix type cast on malloc

This commit is contained in:
Maschell 2021-01-10 13:15:42 +01:00
parent bd2f5461ab
commit 44761b322b

View File

@ -112,7 +112,7 @@ std::vector<PluginContainer> PluginUtils::getLoadedPlugins(uint32_t maxSize) {
return result; return result;
} }
plugin_data_handle *dataHandles = (plugin_container_handle *) malloc(realSize * sizeof(plugin_container_handle)); plugin_data_handle *dataHandles = (plugin_data_handle *) malloc(realSize * sizeof(plugin_data_handle));
if(!dataHandles){ if(!dataHandles){
free(handles); free(handles);
return result; return result;