[libgda] Bug correction: don't use object after freeing it
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Bug correction: don't use object after freeing it
- Date: Tue, 7 Dec 2010 20:10:47 +0000 (UTC)
commit 683bbeefd665d4108d22d229e1537a671196a048
Author: Vivien Malerba <malerba gnome-db org>
Date: Mon Dec 6 22:04:06 2010 +0100
Bug correction: don't use object after freeing it
libgda/gda-meta-struct.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libgda/gda-meta-struct.c b/libgda/gda-meta-struct.c
index ebbe372..8587c38 100644
--- a/libgda/gda-meta-struct.c
+++ b/libgda/gda-meta-struct.c
@@ -2213,7 +2213,10 @@ determine_db_object_from_missing_type (GdaMetaStruct *mstruct,
g_object_unref (model);
return TRUE;
}
- if (model) g_object_unref (model);
+ if (model) {
+ g_object_unref (model);
+ model = NULL;
+ }
copyerror:
if (model)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]