Fix for primitive type GPU free