From 9a68082d3054fe803d44f052bccc28b2091185f5 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Mon, 30 Sep 2013 21:50:42 +0200 Subject: fix memleak (duplicating string is not necessary, as ustring's constructor already does that) (bzr r12632) --- src/color-profile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/color-profile.cpp') diff --git a/src/color-profile.cpp b/src/color-profile.cpp index e8a6a9c98..e6a9ac71c 100644 --- a/src/color-profile.cpp +++ b/src/color-profile.cpp @@ -829,7 +829,7 @@ std::vector ColorProfile::getProfileFiles() for (gchar const *file = g_dir_read_name(dir); file != NULL; file = g_dir_read_name(dir)) { gchar *filepath = g_build_filename(it->c_str(), file, NULL); if ( g_file_test( filepath, G_FILE_TEST_IS_DIR ) ) { - sources.push_back(g_strdup(filepath)); + sources.push_back( filepath ); } else { if ( isIccFile( filepath ) ) { files.push_back( filepath ); -- cgit v1.2.3