[gnumeric] Fixed a stupid ref_count test
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Fixed a stupid ref_count test
- Date: Thu, 16 Aug 2012 17:48:18 +0000 (UTC)
commit 34937ffb092a122100a399c0fa3b2e7519a1df9d
Author: Jean Brefort <jean brefort normalesup org>
Date: Thu Aug 16 19:47:55 2012 +0200
Fixed a stupid ref_count test
src/expr-name.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/expr-name.c b/src/expr-name.c
index f653a80..5c8d8a3 100644
--- a/src/expr-name.c
+++ b/src/expr-name.c
@@ -207,7 +207,7 @@ gnm_named_expr_collection_new (void)
void
gnm_named_expr_collection_free (GnmNamedExprCollection *names)
{
- if (names != NULL && names->ref_count-- > 1) {
+ if (names != NULL && names->ref_count-- < 2) {
g_hash_table_destroy (names->names);
g_hash_table_destroy (names->placeholders);
g_free (names);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]