diff options
author | Shaun McCance <shaunm@gnome.org> | 2010-04-26 18:02:32 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2010-04-26 18:02:32 -0500 |
commit | 04c47abd3669dd5522091e9cfed4466183c4c5ef (patch) | |
tree | 488998e2fbf1cd834ad8008cc0746cd70ff57a9e /libyelp/yelp-docbook-document.c | |
parent | c871647433816c205541ba9c053c107fc284fcb1 (diff) | |
download | yelp-04c47abd3669dd5522091e9cfed4466183c4c5ef.tar.gz |
[libyelp] Adding info documents; still a few problems, but it mostly works
Diffstat (limited to 'libyelp/yelp-docbook-document.c')
-rw-r--r-- | libyelp/yelp-docbook-document.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libyelp/yelp-docbook-document.c b/libyelp/yelp-docbook-document.c index 3849f534..a9c097cb 100644 --- a/libyelp/yelp-docbook-document.c +++ b/libyelp/yelp-docbook-document.c @@ -152,9 +152,15 @@ yelp_docbook_document_dispose (GObject *object) { YelpDocbookDocumentPrivate *priv = GET_PRIV (object); - g_object_unref (priv->uri); + if (priv->uri) { + g_object_unref (priv->uri); + priv->uri = NULL; + } - g_object_unref (priv->sections); + if (priv->sections) { + g_object_unref (priv->sections); + priv->sections = NULL; + } G_OBJECT_CLASS (yelp_docbook_document_parent_class)->dispose (object); } @@ -807,10 +813,9 @@ transform_finalized (YelpDocbookDocument *docbook, { YelpDocbookDocumentPrivate *priv = GET_PRIV (docbook); - debug_print (DB_FUNCTION, "entering\n"); + debug_print (DB_FUNCTION, "entering\n"); if (priv->xmldoc) xmlFreeDoc (priv->xmldoc); priv->xmldoc = NULL; - } |