From: Andrea Zagli Date: Tue, 7 Jun 2011 10:13:35 +0000 (+0200) Subject: Bugfixes. X-Git-Tag: 0.3.0^0 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=226a650957c1e7306d6931b3394dce473855ebcb;p=libgdaex Bugfixes. --- 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; }