[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:
Родитель
6aead42617
Коммит
108099b84c
|
@ -404,7 +404,7 @@ namespace XamCore.CoreGraphics {
|
||||||
[TV (10,0)]
|
[TV (10,0)]
|
||||||
public string Name {
|
public string Name {
|
||||||
get {
|
get {
|
||||||
return CFString.FetchString (CGColorSpaceCopyName (handle));
|
return CFString.FetchString (CGColorSpaceCopyName (handle), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче