diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-12-10 00:01:22 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-11 11:23:19 +0100 |
commit | ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b (patch) | |
tree | 76012c4f3d176b748961c24f96e87724804f260a /libmsi/where.c | |
parent | 0ffc9bc6e55b5e42766e68fb6cc087f6cbead6e0 (diff) | |
download | msitools-ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b.tar.gz msitools-ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b.tar.xz msitools-ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b.zip |
convert to GObject
Diffstat (limited to 'libmsi/where.c')
-rw-r--r-- | libmsi/where.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libmsi/where.c b/libmsi/where.c index 62cfe75..b7b5ff0 100644 --- a/libmsi/where.c +++ b/libmsi/where.c @@ -339,7 +339,7 @@ static unsigned where_view_set_row( LibmsiView *view, unsigned row, LibmsiRecord if (r == LIBMSI_RESULT_SUCCESS) r = table->view->ops->set_row(table->view, rows[table->table_index], reduced, reduced_mask); - msiobj_release(&reduced->hdr); + g_object_unref(reduced); } while ((table = table->next)); return r; @@ -901,7 +901,7 @@ static unsigned where_view_delete( LibmsiView *view ) msi_free(wv->order_info); wv->order_info = NULL; - msiobj_release( &wv->db->hdr ); + g_object_unref(wv->db); msi_free( wv ); return LIBMSI_RESULT_SUCCESS; @@ -1112,8 +1112,7 @@ unsigned where_view_create( LibmsiDatabase *db, LibmsiView **view, WCHAR *tables /* fill the structure */ wv->view.ops = &where_ops; - msiobj_addref( &db->hdr ); - wv->db = db; + wv->db = g_object_ref(db); wv->cond = cond; while (*tables) |