diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2013-09-30 19:50:42 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2013-09-30 19:50:42 +0000 |
| commit | 9a68082d3054fe803d44f052bccc28b2091185f5 (patch) | |
| tree | 217ba2ba19a2b746345b3331583588094b5d8112 /src | |
| parent | Fix translations for tool messages (diff) | |
| download | inkscape-9a68082d3054fe803d44f052bccc28b2091185f5.tar.gz inkscape-9a68082d3054fe803d44f052bccc28b2091185f5.zip | |
fix memleak (duplicating string is not necessary, as ustring's constructor already does that)
(bzr r12632)
Diffstat (limited to 'src')
| -rw-r--r-- | src/color-profile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Glib::ustring> 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 ); |
