[CoreMedia] Make CMCustomBlockAllocator's GCHandle non-pinned. (#1284)

GCHandle.AddrOfPinnedObject is never called for this GCHandle,
so there's no reason for it to be pinned.
This commit is contained in:
Rolf Bjarne Kvinge 2016-12-01 19:39:06 +01:00 коммит произвёл GitHub
Родитель 8122070d14
Коммит 544d35f6cf
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -17,11 +17,11 @@ namespace XamCore.CoreMedia {
public class CMCustomBlockAllocator : IDisposable {
internal GCHandle gch;
GCHandle gch;
public CMCustomBlockAllocator ()
{
gch = GCHandle.Alloc (this, GCHandleType.Pinned);
gch = GCHandle.Alloc (this);
// kCMBlockBufferCustomBlockSourceVersion = 0 <- this is the only and current value
Cblock.Version = 0;
Cblock.Allocate = static_AllocateCallback;