summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-21 19:38:43 +0200
committerraveit65 <[email protected]>2022-07-10 21:28:04 +0200
commit34e381a2f7b7319d0befa3040a5c3b5db900f49d (patch)
treef7098188191673b4af658b63e92943651c5dfaf6
parent6e1f199608ad5622507816f00ac22a0a8990ed4c (diff)
downloadmate-utils-34e381a2f7b7319d0befa3040a5c3b5db900f49d.tar.bz2
mate-utils-34e381a2f7b7319d0befa3040a5c3b5db900f49d.tar.xz
gsearchtool: fix memory leak
-rw-r--r--gsearchtool/src/gsearchtool-support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gsearchtool/src/gsearchtool-support.c b/gsearchtool/src/gsearchtool-support.c
index adffd25f..7e4745fe 100644
--- a/gsearchtool/src/gsearchtool-support.c
+++ b/gsearchtool/src/gsearchtool-support.c
@@ -446,10 +446,10 @@ get_file_type_description (const gchar * file,
}
if (content_type == NULL || g_content_type_is_unknown (content_type) == TRUE) {
- return g_strdup (g_content_type_get_description ("application/octet-stream"));
+ return g_content_type_get_description ("application/octet-stream");
}
- desc = g_strdup (g_content_type_get_description (content_type));
+ desc = g_content_type_get_description (content_type);
if (g_file_info_get_is_symlink (file_info) == TRUE) {