summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp
index e5c0cd824..b53a7b7fa 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -50,6 +50,7 @@
#include "dir-util.h"
#include "unit-constants.h"
#include "prefs-utils.h"
+#include "libavoid/router.h"
#include "display/nr-arena-item.h"
@@ -86,6 +87,9 @@ SPDocument::SPDocument() {
_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);
@@ -164,6 +168,11 @@ SPDocument::~SPDocument() {
keepalive = FALSE;
}
+ if (router) {
+ delete router;
+ router = NULL;
+ }
+
//delete this->_whiteboard_session_manager;
}