[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:
Родитель
8122070d14
Коммит
544d35f6cf
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче