Code

This is the first c++ification commit from me. It handles sp-line, sp-polyline, sp...
[inkscape.git] / src / jabber_whiteboard / session-manager.cpp
index a04ab05f00e39fa1f424141140e37e0e72260670..7a39b6d81644a0c3654e03b9ac192e634bd93e1f 100644 (file)
@@ -393,7 +393,7 @@ makeInkboardDesktop(SPDocument* doc)
     {
         SPViewWidget *dtw = sp_desktop_widget_new(sp_document_namedview(doc, NULL));
         g_return_val_if_fail(dtw != NULL, NULL);
-        sp_document_unref(doc);
+        doc->doUnref();
 
         sp_create_window(dtw, TRUE);
         dt = static_cast<SPDesktop*>(dtw->view);