summaryrefslogtreecommitdiff
path: root/capplets/common/mate-theme-info.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-03-16 13:31:53 +0100
committerraveit65 <[email protected]>2020-04-25 17:55:09 +0200
commit6b0fd11cf82b68ad177883deef722e078d851fc4 (patch)
treec02668f46354efb21feded8289e887bff87609c6 /capplets/common/mate-theme-info.c
parentcaa7430542bac23ba0b13ed3325ad8b1732495f4 (diff)
downloadmate-control-center-6b0fd11cf82b68ad177883deef722e078d851fc4.tar.bz2
mate-control-center-6b0fd11cf82b68ad177883deef722e078d851fc4.tar.xz
mate-theme-info: Use of memory after it is freed
Diffstat (limited to 'capplets/common/mate-theme-info.c')
-rw-r--r--capplets/common/mate-theme-info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/capplets/common/mate-theme-info.c b/capplets/common/mate-theme-info.c
index 266bab51..5e5db12a 100644
--- a/capplets/common/mate-theme-info.c
+++ b/capplets/common/mate-theme-info.c
@@ -1824,8 +1824,7 @@ mate_theme_init ()
g_strfreev (search_path);
/* if there's a separate xcursors dir, add that as well */
- if (strcmp (XCURSOR_ICONDIR, top_theme_dir_string) &&
- strcmp (XCURSOR_ICONDIR, "/usr/share/icons")) {
+ if (strcmp (XCURSOR_ICONDIR, "/usr/share/icons")) {
top_theme_dir = g_file_new_for_path (XCURSOR_ICONDIR);
add_top_icon_theme_dir_monitor (top_theme_dir, 1, NULL);
g_object_unref (top_theme_dir);