[libgda] Misc. corrections
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Misc. corrections
- Date: Sun, 4 Jan 2015 16:10:12 +0000 (UTC)
commit 457210bc67510a7228fcce62a20fa8690c247963
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Jan 4 16:57:25 2015 +0100
Misc. corrections
libgda/gda-config.c | 5 +++--
providers/postgres/Makefile.am | 2 +-
tools/common/t-app.c | 3 +++
tools/common/web-server.c | 2 +-
4 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/libgda/gda-config.c b/libgda/gda-config.c
index 53f8884..34b9a04 100644
--- a/libgda/gda-config.c
+++ b/libgda/gda-config.c
@@ -1772,6 +1772,8 @@ create_internal_provider (const gchar *path,
const gchar *prov_name, const gchar *prov_descr,
gchar *dsn_spec, gchar *auth_spec)
{
+ g_return_val_if_fail (prov_name, NULL);
+
InternalProvider *ip;
GdaProviderInfo *info;
@@ -1901,8 +1903,7 @@ load_providers_from_dir (const gchar *dirname, gboolean recurs)
#endif
continue;
- path = g_build_path (G_DIR_SEPARATOR_S, dirname,
- name, NULL);
+ path = g_build_path (G_DIR_SEPARATOR_S, dirname, name, NULL);
handle = g_module_open (path, G_MODULE_BIND_LAZY);
if (!handle) {
if (g_getenv ("GDA_SHOW_PROVIDER_LOADING_ERROR"))
diff --git a/providers/postgres/Makefile.am b/providers/postgres/Makefile.am
index 35b2dbe..feee87d 100644
--- a/providers/postgres/Makefile.am
+++ b/providers/postgres/Makefile.am
@@ -63,7 +63,7 @@ postgres.gresources.c: postgres.gresource.xml $(RESOURCES)
%.raw.xml:%.xml.in
@echo " GEN $@"
- @cat $< | sed -e 's/_\([a-zA-Z0-9]*\)=/\1=/g' -e 's/<_\([a-ZA-Z0-9_]*\)>/<\1>/g' -e
's/<\/_\([a-ZA-Z0-9_]*\)>/<\/\1>/g' -e 's/<!-- .* -->//'> $@
+ @cat $< | sed -e 's/_\([a-zA-Z0-9]*\)=/\1=/g' -e 's/<_\([a-zA-Z0-9_]*\)>/<\1>/g' -e
's/<\/_\([a-zA-Z0-9_]*\)>/<\/\1>/g' -e 's/<!-- .* -->//'> $@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgda-postgres-6.0.pc
diff --git a/tools/common/t-app.c b/tools/common/t-app.c
index 74d89ef..5b544c7 100644
--- a/tools/common/t-app.c
+++ b/tools/common/t-app.c
@@ -184,6 +184,9 @@ t_app_dispose (GObject *object)
self = T_APP (object);
if (self->priv) {
+ if (self->priv->mem_data_models)
+ g_hash_table_destroy (self->priv->mem_data_models);
+
while (self->priv->tcontext_list)
g_object_unref (G_OBJECT (self->priv->tcontext_list->data));
diff --git a/tools/common/web-server.c b/tools/common/web-server.c
index 320f20d..4e01a49 100644
--- a/tools/common/web-server.c
+++ b/tools/common/web-server.c
@@ -1519,7 +1519,7 @@ compute_all_triggers_content (HtmlDoc *hdoc, TConnection *tcnc, GError **error)
GdaDataModel *model;
gint i, nrows;
GValue *schema = NULL, *tschema = NULL, *tname = NULL;
- xmlNodePtr sul, li, a, div = NULL, sdiv = NULL;
+ xmlNodePtr sul = NULL, li, a, div = NULL, sdiv = NULL;
gboolean content_added = FALSE;
rfc_cnc_name = gda_rfc1738_encode (t_connection_get_name (tcnc));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]