summaryrefslogtreecommitdiffstats
path: root/src/color-profile.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-04-21 11:16:47 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-04-21 11:16:47 +0000
commita8497a5cbf71936d60b16767e0ae22bd28ef0c8f (patch)
treeaba63462139820cae8abf626b507bee12be89b74 /src/color-profile.cpp
parentFixed non working cancel button in export dialog (diff)
downloadinkscape-a8497a5cbf71936d60b16767e0ae22bd28ef0c8f.tar.gz
inkscape-a8497a5cbf71936d60b16767e0ae22bd28ef0c8f.zip
dropping some ghost code / probably fixing a memleak as well
(bzr r11273)
Diffstat (limited to 'src/color-profile.cpp')
-rw-r--r--src/color-profile.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index c4855543c..0ee3ed787 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -774,19 +774,10 @@ std::vector<Glib::ustring> ColorProfile::getBaseProfileDirs() {
#endif // defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2)
std::vector<Glib::ustring> sources;
- gchar* base = profile_path("XXX");
- {
- gchar* base2 = g_path_get_dirname(base);
- g_free(base);
- base = base2;
- base2 = g_path_get_dirname(base);
- g_free(base);
- base = base2;
- }
-
// first try user's local dir
- sources.push_back( g_build_filename(g_get_user_data_dir(), "color", "icc", NULL) );
-
+ gchar* path = g_build_filename(g_get_user_data_dir(), "color", "icc", NULL);
+ sources.push_back(path);
+ g_free(path);
const gchar* const * dataDirs = g_get_system_data_dirs();
for ( int i = 0; dataDirs[i]; i++ ) {