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];