aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-sexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-sexp.c')
-rw-r--r--e-util/e-sexp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/e-util/e-sexp.c b/e-util/e-sexp.c
index f21c6dacd3..a9b46e440f 100644
--- a/e-util/e-sexp.c
+++ b/e-util/e-sexp.c
@@ -1181,6 +1181,8 @@ e_sexp_add_function(ESExp *f, int scope, char *name, ESExpFunc *func, void *data
g_return_if_fail (IS_E_SEXP (f));
g_return_if_fail (name != NULL);
+ e_sexp_remove_symbol (f, scope, name);
+
s = g_malloc0(sizeof(*s));
s->name = g_strdup(name);
s->f.func = func;
@@ -1197,6 +1199,8 @@ e_sexp_add_ifunction(ESExp *f, int scope, char *name, ESExpIFunc *ifunc, void *d
g_return_if_fail (IS_E_SEXP (f));
g_return_if_fail (name != NULL);
+ e_sexp_remove_symbol (f, scope, name);
+
s = g_malloc0(sizeof(*s));
s->name = g_strdup(name);
s->f.ifunc = ifunc;