[libgda] Misc corrections
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda] Misc corrections
- Date: Tue, 6 Oct 2009 18:46:02 +0000 (UTC)
commit 625dd3ac5af54312ccd46acadfd21ae4fd18f0fa
Author: Vivien Malerba <malerba gnome-db org>
Date: Tue Oct 6 20:34:08 2009 +0200
Misc corrections
libgda/gda-value.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index 8d281f9..b36d79f 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -442,9 +442,11 @@ gda_blob_free (gpointer boxed)
GdaBlob *blob = (GdaBlob*) boxed;
g_return_if_fail (blob);
-
- if (blob->op)
+
+ if (blob->op) {
g_object_unref (blob->op);
+ blob->op = NULL;
+ }
gda_binary_free ((GdaBinary *) blob);
}
@@ -464,8 +466,7 @@ gda_blob_set_op (GdaBlob *blob, GdaBlobOp *op)
}
if (op) {
g_return_if_fail (GDA_IS_BLOB_OP (op));
- blob->op = op;
- g_object_ref (op);
+ blob->op = g_object_ref (op);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]