diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmarks-export.c | 8 |
2 files changed, 14 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2004-01-25 Christian Persch <chpe@cvs.gnome.org> + * src/bookmarks/ephy-bookmarks-export.c: + (ephy_bookmarks_export_rdf): + + Fix mem leak. + +2004-01-25 Christian Persch <chpe@cvs.gnome.org> + * src/bookmarks/ephy-bookmarks-editor.c: (search_entry_search_cb), (get_details_value): diff --git a/src/bookmarks/ephy-bookmarks-export.c b/src/bookmarks/ephy-bookmarks-export.c index df7537abf..1251eebe9 100644 --- a/src/bookmarks/ephy-bookmarks-export.c +++ b/src/bookmarks/ephy-bookmarks-export.c @@ -94,7 +94,11 @@ ephy_bookmarks_export_rdf (EphyBookmarks *bookmarks, /* FIXME: do we want to turn on compression here? */ writer = xmlNewTextWriterFilename (tmp_file, 0); - if (writer == NULL) return; + if (writer == NULL) + { + g_free (tmp_file); + return; + } ret = xmlTextWriterStartDocument (writer, "1.0", NULL, NULL); if (ret < 0) goto out; @@ -274,6 +278,8 @@ out: } } + g_free (tmp_file); + STOP_PROFILER ("Exporting as RDF") LOG ("Exporting as RDF %s.", ret >= 0 ? "succeeded" : "FAILED") |