mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-02-16 02:21:07 +00:00
Fix thread context leak on non-Vita platforms
This commit is contained in:
@@ -86,9 +86,7 @@ void* ThreadProc(void* context) {
|
||||
|
||||
ctx->entry(ctx->context);
|
||||
|
||||
#if defined(__vita__)
|
||||
free(ctx);
|
||||
#endif
|
||||
free(ctx);
|
||||
|
||||
#if defined(LC_WINDOWS) || defined(__vita__) || defined(__WIIU__) || defined(__3DS__)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user