From 370539f2f8ce300427653501c6d2190a22354bfb Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 2 Feb 2020 20:00:41 +0100 Subject: caja-wallpaper-extension: fix memory leak --- wallpaper/caja-wallpaper-extension.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'wallpaper') diff --git a/wallpaper/caja-wallpaper-extension.c b/wallpaper/caja-wallpaper-extension.c index f25f097..591eeb8 100644 --- a/wallpaper/caja-wallpaper-extension.c +++ b/wallpaper/caja-wallpaper-extension.c @@ -66,15 +66,12 @@ set_wallpaper_callback (CajaMenuItem *item, static gboolean is_image (CajaFileInfo *file) { - gchar *mimeType; + gchar *mimeType; gboolean isImage; mimeType = caja_file_info_get_mime_type (file); - - isImage = g_str_has_prefix (caja_file_info_get_mime_type (file), "image/"); - + isImage = g_str_has_prefix (mimeType, "image/"); g_free (mimeType); - return isImage; } -- cgit v1.2.1