diff --git a/src/document.cpp b/src/document.cpp
index e5c0cd82495e1a91b5c925a315f157d124d9457c..b53a7b7fad6f9fb1d54354ba028e77e9f0fc77f7 100644 (file)
--- a/src/document.cpp
+++ b/src/document.cpp
#include "dir-util.h"
#include "unit-constants.h"
#include "prefs-utils.h"
+#include "libavoid/router.h"
#include "display/nr-arena-item.h"
_collection_queue = NULL;
+ // Initialise instance of connector router.
+ router = new Avoid::Router();
+
p = new SPDocumentPrivate();
p->iddef = g_hash_table_new(g_direct_hash, g_direct_equal);
keepalive = FALSE;
}
+ if (router) {
+ delete router;
+ router = NULL;
+ }
+
//delete this->_whiteboard_session_manager;
}