[gnumeric] checks: please check argument of go_format_unref.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] checks: please check argument of go_format_unref.
- Date: Sat, 5 Nov 2011 14:33:13 +0000 (UTC)
commit abd6549a3e676a01676fc9c50941cf918dd69d2b
Author: Morten Welinder <terra gnome org>
Date: Sat Nov 5 10:32:47 2011 -0400
checks: please check argument of go_format_unref.
src/graph.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/graph.c b/src/graph.c
index 54ab6a6..83b3f31 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -387,8 +387,7 @@ gnm_go_data_scalar_get_str (GODataScalar *dat)
scalar->val_str =
render_val (scalar_get_val (scalar), 0, 0, fmt, &ep);
}
- if (fmt)
- go_format_unref (fmt);
+ go_format_unref (fmt);
return scalar->val_str;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]