From 9474a97aa1faad28dd8eb829e9aca8ca05f8d6f8 Mon Sep 17 00:00:00 2001 From: mental Date: Sat, 29 Apr 2006 06:46:25 +0000 Subject: [PATCH] add missing unref, which should hopefully address the document leak --- ChangeLog | 4 ++++ src/ui/view/view.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index bce69ca67..d4d316430 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-04-29 MenTaLguY + + * src/ui/view/view.cpp: add missing unref + 2006-04-29 MenTaLguY * src/gc-anchored.cpp, src/gc-anchored.h: diff --git a/src/ui/view/view.cpp b/src/ui/view/view.cpp index 0f7fd9195..48c48c750 100644 --- a/src/ui/view/view.cpp +++ b/src/ui/view/view.cpp @@ -97,6 +97,7 @@ void View::_close() { if (_doc) { _document_uri_set_connection.disconnect(); _document_resized_connection.disconnect(); + sp_document_unref(_doc); _doc = 0; } -- 2.30.2