[seed] [gettext] Don't free the wrong string (causing double-free crash in case of no translation)
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] [gettext] Don't free the wrong string (causing double-free crash in case of no translation)
- Date: Wed, 8 Jul 2009 18:23:51 +0000 (UTC)
commit 4a0f80f582272689368d3a792078b8d07a280210
Author: Tim Horton <hortont svn gnome org>
Date: Wed Jul 8 14:22:44 2009 -0400
[gettext] Don't free the wrong string (causing double-free crash in case of no translation)
modules/gettext/seed-gettext.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/modules/gettext/seed-gettext.c b/modules/gettext/seed-gettext.c
index 6fdfe74..9b54869 100644
--- a/modules/gettext/seed-gettext.c
+++ b/modules/gettext/seed-gettext.c
@@ -22,7 +22,8 @@ seed_gettext_gettext (SeedContext ctx,
msgid = seed_value_to_string (ctx, arguments[0], exception);
ret = seed_value_from_string (ctx, gettext(msgid), exception);
- g_free(ret);
+
+ g_free(msgid);
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]