[gnumeric] Func: use before delete, even for pointer comparisons.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Func: use before delete, even for pointer comparisons.
- Date: Thu, 10 Jan 2013 13:48:00 +0000 (UTC)
commit 6671cd9dfeadb67fa1ea87162e35ad9209333e84
Author: Morten Welinder <terra gnome org>
Date: Thu Jan 10 08:47:25 2013 -0500
Func: use before delete, even for pointer comparisons.
src/func.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/func.c b/src/func.c
index d1fcf12..3899d08 100644
--- a/src/func.c
+++ b/src/func.c
@@ -879,9 +879,9 @@ gnm_func_group_remove_func (GnmFuncGroup *fn_group, GnmFunc *fn_def)
fn_group->functions = g_slist_remove (fn_group->functions, fn_def);
if (fn_group->functions == NULL) {
categories = g_list_remove (categories, fn_group);
- gnm_func_group_free (fn_group);
if (unknown_cat == fn_group)
unknown_cat = NULL;
+ gnm_func_group_free (fn_group);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]