Skip to content

Commit bccf1c1

Browse files
committed
opencl: Fix delete operation
gcc report: opencl/openclwrapper.cpp:3169:12: warning: deleting 'void*' is undefined Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 3ac54b9 commit bccf1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opencl/openclwrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3167,7 +3167,7 @@ ds_status deserializeScore( ds_device* device, const unsigned char* serializedSc
31673167
}
31683168

31693169
ds_status releaseScore( void* score ) {
3170-
delete[] score;
3170+
delete (TessDeviceScore *)score;
31713171
return DS_SUCCESS;
31723172
}
31733173

0 commit comments

Comments
 (0)