ui/common/context.c

changeset 53
62205699cd0e
parent 52
25e5390cce41
child 88
04c81be1c5a0
--- a/ui/common/context.c	Tue Jul 22 09:51:17 2014 +0200
+++ b/ui/common/context.c	Tue Jul 22 19:15:44 2014 +0200
@@ -131,7 +131,9 @@
         }
     }
     
-    docctx->obj->ctx->document = NULL;
+    if(docctx->obj) {
+        docctx->obj->ctx->document = NULL;
+    }
     
     docctx->obj = NULL;
 }

mercurial