summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-21 19:38:43 +0200
committerLuke from DC <[email protected]>2022-01-21 02:43:24 +0000
commitb798b5bf8cea1fd33abb62dfc45346f74e0515b1 (patch)
treed3f1033976ed04c59acbbb40958f0fab1c92ba31
parenta08d026bf8d745f08ec054c58a36d73bb018d93b (diff)
downloadmate-utils-b798b5bf8cea1fd33abb62dfc45346f74e0515b1.tar.bz2
mate-utils-b798b5bf8cea1fd33abb62dfc45346f74e0515b1.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 63063b4c..0a56c6a9 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) {