[Metal] Add missing GC.KeeAlive. (#9653)

Do it after the review comments on https://github.com/xamarin/xamarin-macios/pull/9651
This commit is contained in:
Manuel de la Pena 2020-09-16 17:37:29 -04:00 коммит произвёл GitHub
Родитель 7ec3751a10
Коммит 3e3111d44b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -29,6 +29,7 @@ namespace Metal {
table.SetBuffers ((IntPtr) buffersPtr, (IntPtr) offsetsPtr, range);
}
}
GC.KeepAlive (buffers);
}
}
}