aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/ContentHandler.cpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 11bb44a8e..86c95fca4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,12 @@
* embed/mozilla/ContentHandler.cpp:
+ Fix a mem leak.
+
+2004-07-31 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/ContentHandler.cpp:
+
Confirm before overwriting a file. Fixes bug #143501.
2004-07-31 Christian Persch <chpe@cvs.gnome.org>
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp
index 448c6f8bd..96aa15e7f 100644
--- a/embed/mozilla/ContentHandler.cpp
+++ b/embed/mozilla/ContentHandler.cpp
@@ -176,6 +176,7 @@ NS_IMETHODIMP GContentHandler::PromptForSaveToFile(
else
{
gtk_widget_destroy (GTK_WIDGET (dialog));
+ g_free (filename);
return NS_ERROR_FAILURE;
}