diff options
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp index 3a7d4408f..d9c709626 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -96,6 +96,7 @@ SPDocument::SPDocument() : rroot(NULL), root(NULL), style_cascade(cr_cascade_new(NULL, NULL, NULL)), + style_sheet(NULL), uri(NULL), base(NULL), name(NULL), @@ -177,6 +178,7 @@ SPDocument::~SPDocument() { priv->resources.clear(); } + // This also destroys all attached stylesheets cr_cascade_unref(style_cascade); style_cascade = NULL; |
