[CoreGraphics] Fix memory leak in CGColorSpace.Name. (#2809)

As the native name says, 'CGColorSpaceCopyName' returns a copy, which means we own the return value.
This commit is contained in:
Rolf Bjarne Kvinge 2017-09-28 22:20:48 +02:00 коммит произвёл Sebastien Pouliot
Родитель 6aead42617
Коммит 108099b84c
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -404,7 +404,7 @@ namespace XamCore.CoreGraphics {
[TV (10,0)]
public string Name {
get {
return CFString.FetchString (CGColorSpaceCopyName (handle));
return CFString.FetchString (CGColorSpaceCopyName (handle), true);
}
}