From 2078f41db4c8602d43afa40016a08364a3a441e4 Mon Sep 17 00:00:00 2001 From: maruhiro Date: Sat, 9 May 2015 11:23:35 +0900 Subject: [PATCH] =?utf8?q?SDL=5FGetPrefPath=20=E3=82=B5=E3=83=B3=E3=83=97?= =?utf8?q?=E3=83=AB=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SDL_GetPrefPath.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SDL_GetPrefPath.html b/SDL_GetPrefPath.html index 4f4adbe..df3544d 100644 --- a/SDL_GetPrefPath.html +++ b/SDL_GetPrefPath.html @@ -40,8 +40,7 @@ char *pref_path = NULL; void InitializePrefPath() { char *base_path = SDL_GetPrefPath("My Company", "My Awesome SDL 2 Game"); if (base_path) { - pref_path = SDL_strdup(base_path); - SDL_free(base_path); + pref_path = base_path; } else { /* ƒQ[ƒ€‚ŏî•ñ‚ð‘‚©‚È‚¢‚悤‚É‚·‚鏈—‚ð‚±‚±‚ɏ‘‚­ */ } -- 2.11.0