[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Denemo-devel] free g_free in current git
From: |
Richard Shann |
Subject: |
[Denemo-devel] free g_free in current git |
Date: |
Thu, 19 May 2011 09:07:40 +0100 |
Jeremiah
@@ -506,6 +516,7 @@ static SCM scheme_activate_menu_item(SCM menupath) {
item = scm_to_locale_string(menupath);
if(item) {
gboolean ret = activate_action(item) ? TRUE:FALSE;
+ g_free(item);
return SCM_BOOL(ret);
}
}
Is this one right? scm_to_locale_string() cannot be returning something
allocated with g_malloc can it (since scheme lib knows nothing of glib)?
So it must be malloc, in which case free(item) not g_free()???
other examples of the same are further down in this patch...
Richard
- [Denemo-devel] free g_free in current git,
Richard Shann <=