summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-08-02 09:40:50 +0800
committerRobert Antoni Buj Gelonch <[email protected]>2019-08-02 10:05:32 +0200
commit5642efc49cb3f7b881d64a14277ab024fef7d102 (patch)
treef7e0bd45af5aea9428b4b2e32100203db412f2e9 /capplets
parent5e0c0f43be12a992875bd68121371d157eb2ccbb (diff)
downloadmate-control-center-5642efc49cb3f7b881d64a14277ab024fef7d102.tar.bz2
mate-control-center-5642efc49cb3f7b881d64a14277ab024fef7d102.tar.xz
appearance: fix memory leak
Diffstat (limited to 'capplets')
-rw-r--r--capplets/appearance/appearance-font.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c
index ab8e5938..528253fa 100644
--- a/capplets/appearance/appearance-font.c
+++ b/capplets/appearance/appearance-font.c
@@ -583,6 +583,7 @@ static void install_new_font (const gchar *filepath)
g_free (basename);
src = g_file_new_for_path (filepath);
dst = g_file_new_for_path (fontpath);
+ g_free (fontpath);
if (!g_file_copy (src,
dst,