[libgda] Memory leak correction in SQLite provider



commit 2ede380bac73386fa3bff71f011ab11e4dacc83f
Author: Vivien Malerba <malerba gnome-db org>
Date:   Wed Mar 10 22:41:40 2010 +0100

    Memory leak correction in SQLite provider

 libgda/sqlite/gda-sqlite-provider.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgda/sqlite/gda-sqlite-provider.c b/libgda/sqlite/gda-sqlite-provider.c
index 9bc6400..a4acd20 100644
--- a/libgda/sqlite/gda-sqlite-provider.c
+++ b/libgda/sqlite/gda-sqlite-provider.c
@@ -1901,6 +1901,7 @@ real_prepare (GdaServerProvider *provider, GdaConnection *cnc, GdaStatement *stm
 	_GDA_PSTMT (ps)->sql = sql;
 	ps->rowid_hash = hash;
 	ps->nb_rowid_columns = nb_rows_added;
+	g_object_unref (real_stmt);
 	return ps;
 
  out_err:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]