Add ComPtr<T>.Release to simplify native objects
このコミットが含まれているのは:
1 親
3b31b9abe2
コミット
4ec0b1e43e
6ファイル変更
+22
-40
検索条件に一致するファイルはありません
+1
-4
@@ -305,10 +305,7 @@ partial struct PixelShaderEffect
|
||||
@this = (PixelShaderEffect*)&((void**)@this)[-1];
|
||||
|
||||
// Free the previous ID2D1DrawInfo object, if present
|
||||
if (@this->d2D1DrawInfo is not null)
|
||||
{
|
||||
_ = @this->d2D1DrawInfo->Release();
|
||||
}
|
||||
ComPtr<ID2D1DrawInfo>.Release(@this->d2D1DrawInfo);
|
||||
|
||||
// Store the new ID2D1DrawInfo object
|
||||
_ = drawInfo->AddRef();
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする