[lasem/lasem-0-2] Fixed critical in lsm_dom_view_finalize. [#622856]



commit b9965d5e37ed5770011fd510814b10d9d137d14e
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Jun 27 11:32:26 2010 +0200

    Fixed critical in lsm_dom_view_finalize. [#622856]

 src/lsmdomview.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/lsmdomview.c b/src/lsmdomview.c
index ca1f4cf..f2b20b2 100644
--- a/src/lsmdomview.c
+++ b/src/lsmdomview.c
@@ -217,7 +217,8 @@ lsm_dom_view_finalize (GObject *object)
 {
 	LsmDomView *view = LSM_DOM_VIEW (object);
 
-	g_object_unref (view->document);
+	if (view->document)
+		g_object_unref (view->document);
 
 	if (view->pango_layout != NULL)
 		g_object_unref (view->pango_layout);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]