Skip to content

Commit 516d00b

Browse files
committed
[[ Bug 19420 ]] Fix crash on resume in commercial android engine
Ensure MClicenseparameters struct is cleared in X_clear_globals so that it does not contain any dangling pointers when android apps are resumed.
1 parent 705dd91 commit 516d00b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

engine/src/globals.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,8 @@ void X_clear_globals(void)
856856

857857
MChooks = nil;
858858

859+
memset(&MClicenseparameters, 0, sizeof(MCLicenseParameters));
860+
859861
#if defined(MCSSL)
860862
MCSocketsInitialize();
861863
#endif

0 commit comments

Comments
 (0)