aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-26 04:08:32 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-26 04:08:32 +0800
commitefb44feef21557283e8c7bc1171d4130594d9444 (patch)
treeb0c9b18b07222a6872042f123422e7584c858d65
parent1b1252af7d5375985948ae461cdb30629d18b2af (diff)
downloadgsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar
gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar.gz
gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar.bz2
gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar.lz
gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar.xz
gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.tar.zst
gsoc2013-epiphany-efb44feef21557283e8c7bc1171d4130594d9444.zip
Fix mem leak.
2004-01-25 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks-export.c: (ephy_bookmarks_export_rdf): Fix mem leak.
-rw-r--r--ChangeLog7
-rw-r--r--src/bookmarks/ephy-bookmarks-export.c8
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4b428ffa9..693e609eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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")