summaryrefslogtreecommitdiffstats
path: root/libmsi/update.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-12-10 00:01:22 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-11 11:23:19 +0100
commitae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b (patch)
tree76012c4f3d176b748961c24f96e87724804f260a /libmsi/update.c
parent0ffc9bc6e55b5e42766e68fb6cc087f6cbead6e0 (diff)
downloadmsitools-ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b.tar.gz
msitools-ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b.tar.xz
msitools-ae4c81e4fca5bb5816b5cbabb17a7dcc22f58a3b.zip
convert to GObject
Diffstat (limited to 'libmsi/update.c')
-rw-r--r--libmsi/update.c9
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;