diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index d410178e91..ced97d8cee 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -883,9 +883,11 @@ bool netplay_disconnect(netplay_t *netplay) void deinit_netplay(void) { if (netplay_data) + { netplay_free(netplay_data); + netplay_enabled = false; + } netplay_data = NULL; - netplay_enabled = false; core_unset_netplay_callbacks(); }