summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/notebook.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c
index 566b95b..88bfa3f 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -184,6 +184,8 @@ mq_notebook_insert_sibling(MqNotebook *notebook, const gchar *uri,
{
MqTabTree *node;
+ g_assert(sibling);
+
find_node(notebook, sibling);
node = MQ_TAB_TREE(mq_tree_insert_sibling_allocated(
MQ_TREE(g_new0(MqTabTree, 1)),
@@ -201,6 +203,8 @@ mq_notebook_insert_child(MqNotebook *notebook, const gchar *uri,
{
MqTabTree *node;
+ g_assert(child);
+
find_node(notebook, child);
node = MQ_TAB_TREE(mq_tree_insert_child_allocated(
MQ_TREE(g_new0(MqTabTree, 1)),