Skip to content

Commit d9d824a

Browse files
Fix stale weak pointer access (#19856)
Closes #19855
1 parent c310e02 commit d9d824a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cascadia/TerminalApp/Tab.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ namespace winrt::TerminalApp::implementation
11141114
[dispatcher, weakThis](auto&&, auto&&) -> safe_void_coroutine {
11151115
const auto weakThisCopy = weakThis;
11161116
co_await wil::resume_foreground(dispatcher);
1117-
if (auto tab{ weakThis.get() })
1117+
if (auto tab{ weakThisCopy.get() })
11181118
{
11191119
tab->_RecalculateAndApplyReadOnly();
11201120
}

0 commit comments

Comments
 (0)