Skip to content

Commit

Permalink
fix(d3d11): fix an unintentional autorelease
Browse files Browse the repository at this point in the history
Which causes crash when a swapchain is destroyed
  • Loading branch information
3Shain committed Jan 23, 2025
1 parent af78f44 commit 004e1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d11/d3d11_swapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class MTLD3D11SwapChain final : public MTLDXGISubObject<IDXGISwapChain4, MTLD3D1
NS::String::string(GetVersionDescriptionText(11, m_device->GetFeatureLevel()).c_str(),
NS::UTF8StringEncoding));
str_label_compatibility_flag_ =
transfer(NS::String::string("com.github.3shain.dxmt-compatibility", NS::ASCIIStringEncoding));
transfer(NS::String::alloc()->init("com.github.3shain.dxmt-compatibility", NS::ASCIIStringEncoding));
hud->addLabel(str_label_compatibility_flag_, str_dxmt_version);
hud->updateLabel(
str_label_compatibility_flag_, NS::String::string("---------------------------", NS::ASCIIStringEncoding)
Expand Down

0 comments on commit 004e1bd

Please sign in to comment.