From 444047fdce2c88f64aaff5f89eeebc07a9e49573 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 60cce9a9e..7da0c23a4 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -23396,7 +23396,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