Skip to content

Commit a7be0f7

Browse files
committed
Revert "Addendum to 71dd957 (fix crash on quit)"
This reverts commit 8d76cdc.
1 parent c2caf8b commit a7be0f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Client/mods/deathmatch/logic/CClientWebBrowser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ CClientGUIWebBrowser::CClientGUIWebBrowser ( bool isLocal, bool isTransparent, u
336336
{
337337
m_pManager = pManager;
338338
m_pBrowser.reset(g_pClientGame->GetManager()->GetRenderElementManager()->CreateWebBrowser(width, height, isLocal, isTransparent));
339+
m_pBrowser->SetParent(this); // Memory management is no longer done via element tree logic, but is kept here for backwards compatibility
339340
m_pBrowser->MakeSystemEntity(); // Mark element as system entity so it isn't destroyed automatically
340341

341342
// Set our owner resource

0 commit comments

Comments
 (0)