From 8db052c9d3968eba338552848a186251f21ee4c1 Mon Sep 17 00:00:00 2001 From: Mark Kim Date: Tue, 23 Mar 2021 22:26:49 -0400 Subject: [PATCH] fix attempt to free non-freeable memory --- src/tuxpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 2fe9f8714..53ea12665 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -23961,7 +23961,7 @@ static void setup_config(char *argv[]) #ifdef WIN32 picturesdir = GetUserImageDir(); #elif __APPLE__ - picturesdir = apple_picturesPath(); + picturesdir = strdup(apple_picturesPath()); #else picturesdir = get_xdg_user_dir("PICTURES", "Pictures"); #endif