From 226a650957c1e7306d6931b3394dce473855ebcb Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Tue, 7 Jun 2011 12:13:35 +0200 Subject: [PATCH] Bugfixes. --- src/Makefile.am | 8 ++++---- src/gdaex.c | 6 ++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index f053869..167a7ca 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,9 +12,9 @@ libgdaex_la_SOURCES = gdaex.c \ libgdaex_la_LDFLAGS = -no-undefined -include_HEADERS = libgdaex.h \ - gdaex.h \ - grid.h \ - gridcolumn.h +libgdaex_include_HEADERS = libgdaex.h \ + gdaex.h \ + grid.h \ + gridcolumn.h libgdaex_includedir = $(includedir)/libgdaex diff --git a/src/gdaex.c b/src/gdaex.c index e70188d..70529c7 100644 --- a/src/gdaex.c +++ b/src/gdaex.c @@ -658,8 +658,6 @@ GdaDataModel } } - g_object_unref (stmt); - return dm; } @@ -2184,8 +2182,6 @@ gdaex_execute (GdaEx *gdaex, const gchar *sql) error = NULL; nrecs = gda_connection_statement_execute_non_select (priv->gda_conn, stmt, NULL, NULL, &error); - g_object_unref (stmt); - if (error != NULL) { g_warning ("Error executing command query: %s\n%s", @@ -2202,6 +2198,8 @@ gdaex_execute (GdaEx *gdaex, const gchar *sql) g_signal_emit (gdaex, klass->after_execute_signal_id, 0, stmt); + g_object_unref (stmt); + return nrecs; } -- 2.49.0