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/update.c | |
| parent | 0ffc9bc6e55b5e42766e68fb6cc087f6cbead6e0 (diff) | |
| download | msitools-ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b.tar.gz msitools-ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b.tar.xz msitools-ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b.zip | |
convert to GObject
Diffstat (limited to 'libmsi/update.c')
| -rw-r--r-- | libmsi/update.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libmsi/update.c b/libmsi/update.c index 7a2a523..47b7caf 100644 --- a/libmsi/update.c +++ b/libmsi/update.c @@ -117,8 +117,8 @@ static unsigned update_view_execute( LibmsiView *view, LibmsiRecord *record ) } done: - if ( where ) msiobj_release( &where->hdr ); - if ( values ) msiobj_release( &values->hdr ); + if ( where ) g_object_unref(where); + if ( values ) g_object_unref(values); return r; } @@ -177,7 +177,7 @@ static unsigned update_view_delete( LibmsiView *view ) wv = uv->wv; if( wv ) wv->ops->delete( wv ); - msiobj_release( &uv->db->hdr ); + g_object_unref(uv->db); msi_free( uv ); return LIBMSI_RESULT_SUCCESS; @@ -246,8 +246,7 @@ unsigned update_view_create( LibmsiDatabase *db, LibmsiView **view, WCHAR *table /* fill the structure */ uv->view.ops = &update_ops; - msiobj_addref( &db->hdr ); - uv->db = db; + uv->db = g_object_ref(db); uv->vals = columns; uv->wv = sv; *view = (LibmsiView*) uv; |
