From 10f3d2655da2571c1493cff6b1071f73d61b2ce6 Mon Sep 17 00:00:00 2001 From: Struma Date: Mon, 8 Mar 2021 06:20:18 -0500 Subject: [PATCH] Remove unnecessary SDL_free --- src/main.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 97039935..c47dcd12 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -199,7 +199,6 @@ int main(int argc, char *argv[]) { #endif if (!dataDir[0]) { strncpy(dataDir, mkxp_fs::getDefaultGameRoot().c_str(), sizeof(dataDir)); - SDL_free(tmp); } mkxp_fs::setCurrentDirectory(dataDir); #endif @@ -275,9 +274,6 @@ int main(int argc, char *argv[]) { return 0; } #if defined(__WINDOWS__) - // Init winsock, allows socket ops in Ruby to work - // MKXP itself doesn't need it so it's a little - // hands-off WSAData wsadata = {0}; if (WSAStartup(0x101, &wsadata) || wsadata.wVersion != 0x101) { char buf[200];