summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 736cd09)
raw | patch | inline | side by side (parent: 736cd09)
author | mental <mental@users.sourceforge.net> | |
Sat, 29 Apr 2006 15:42:18 +0000 (15:42 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Sat, 29 Apr 2006 15:42:18 +0000 (15:42 +0000) |
ChangeLog | patch | blob | history | |
src/ui/view/view.cpp | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index d4d316430e9f79455fe5a34eb695f669c8144da4..a44b9d39ccca1db53099622b825b89c773af5508 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2006-04-29 MenTaLguY <mental@rydia.net>
+
+ * src/ui/view/view.cpp:
+
+ Wait a minute -- UI::View::View and SPDocument are both managed
+ by the collector -- the view doesn't need to ref the document!
+
2006-04-29 MenTaLguY <mental@rydia.net>
* src/ui/view/view.cpp: add missing unref
diff --git a/src/ui/view/view.cpp b/src/ui/view/view.cpp
index 48c48c750ae3d07e74b7ca0e1484deb27b3ed38c..04158ddbdd74595b759149661ca0839d0026bccf 100644 (file)
--- a/src/ui/view/view.cpp
+++ b/src/ui/view/view.cpp
if (_doc) {
_document_uri_set_connection.disconnect();
_document_resized_connection.disconnect();
- sp_document_unref(_doc);
_doc = 0;
}
if (_doc) {
_document_uri_set_connection.disconnect();
_document_resized_connection.disconnect();
- sp_document_unref (_doc);
}
- _doc = sp_document_ref (doc);
+ _doc = doc;
_document_uri_set_connection =
_doc->connectURISet(sigc::bind(sigc::ptr_fun(&_onDocumentURISet), this));
_document_resized_connection =