diff --git a/src/document.cpp b/src/document.cpp
index eca4ab2dcae09a1be42a916789ee1fe4eeb0e487..71f607b6524dcdc2e88a1c974c565243c1d830fc 100644 (file)
--- a/src/document.cpp
+++ b/src/document.cpp
if (root) {
sp_object_invoke_release(root);
- g_object_unref(G_OBJECT(root));
+ sp_object_unref(root);
root = NULL;
}