summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2008-07-29 03:08:57 +0000
committerpjrm <pjrm@users.sourceforge.net>2008-07-29 03:08:57 +0000
commit9bd67a1807394815f85a576f3830eb5bb725cd6c (patch)
tree33e06fcba3f4aef9ecf2b1e0c04d4cb86deb0409 /src/widgets/toolbox.cpp
parentnew LPE hits the shelves :) (diff)
downloadinkscape-9bd67a1807394815f85a576f3830eb5bb725cd6c.tar.gz
inkscape-9bd67a1807394815f85a576f3830eb5bb725cd6c.zip
fix a couple of free-instead-of-g_free bugs.
(bzr r6443)
Diffstat (limited to 'src/widgets/toolbox.cpp')
-rw-r--r--src/widgets/toolbox.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index f5a213dc9..53911e519 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -3799,9 +3799,9 @@ static void sp_tweak_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainAction
//########################
//## Calligraphy ##
//########################
-static void update_presets_list (GObject *tbl)
+static void update_presets_list (GObject *tbl)
{
- if (g_object_get_data(tbl, "presets_blocked"))
+ if (g_object_get_data(tbl, "presets_blocked"))
return;
EgeSelectOneAction *sel = static_cast<EgeSelectOneAction *>(g_object_get_data(tbl, "profile_selector"));
@@ -4027,7 +4027,7 @@ static void sp_dcc_save_profile (GtkWidget */*widget*/, GObject *tbl)
new_index = total_prefs + 1;
gchar *profile_id = g_strdup_printf("dcc%d", new_index);
pref_path = create_pref("tools.calligraphic.preset", profile_id);
- free(profile_id);
+ g_free(profile_id);
}
for (unsigned i = 0; i < NUMBER_OF_PRESET_PARAMS; ++i) {
@@ -4057,7 +4057,7 @@ static void sp_dcc_save_profile (GtkWidget */*widget*/, GObject *tbl)
sp_dcc_build_presets_list (tbl);
- free (pref_path);
+ g_free(pref_path);
}