From: maruhiro Date: Sat, 9 May 2015 02:23:35 +0000 (+0900) Subject: SDL_GetPrefPath サンプルコードを修正 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2078f41db4c8602d43afa40016a08364a3a441e4;p=sdl2referencejp%2Fsdl2referencejp.git SDL_GetPrefPath サンプルコードを修正 --- 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[ƒ€‚ŏî•ñ‚ð‘‚©‚È‚¢‚悤‚É‚·‚鏈—‚ð‚±‚±‚ɏ‘‚­ */ }