Commit 3bcb7b7d authored by Daniel Espinosa Ortiz's avatar Daniel Espinosa Ortiz

ddl-test: fixed memory leak on postgres creator test

parent f5b4901e
......@@ -87,6 +87,14 @@ static void create_users_table (CheckDdlObject *self) {
gda_ddl_creator_append_table (self->creator, table);
res = gda_ddl_table_create (table, self->cnc, TRUE, &error);
g_object_unref (table);
g_object_unref (column_id);
g_object_unref (column_name);
g_object_unref (column_ctime);
g_object_unref (column_ts);
g_object_unref (column_state);
if (!res) {
g_warning ("Error Creating table: %s", error->message);
}
......@@ -147,6 +155,14 @@ static void create_companies_table (CheckDdlObject *self) {
gda_ddl_creator_append_table (self->creator, table);
res = gda_ddl_table_create (table, self->cnc, TRUE, &error);
g_object_unref (table);
g_object_unref (column_id);
g_object_unref (column_name);
g_object_unref (column_ctime);
g_object_unref (column_ts);
g_object_unref (column_state);
if (!res) {
g_warning ("Error Creating table: %s", error->message);
}
......@@ -208,6 +224,14 @@ static void create_countries_table (CheckDdlObject *self) {
gda_ddl_creator_append_table (self->creator, table);
res = gda_ddl_table_create (table, self->cnc, TRUE, &error);
g_object_unref (table);
g_object_unref (column_id);
g_object_unref (column_name);
g_object_unref (column_ctime);
g_object_unref (column_ts);
g_object_unref (column_state);
if (!res) {
g_warning ("Error Creating table: %s", error->message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment