aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-07-31 21:41:09 +0800
committerChristian Persch <chpe@src.gnome.org>2004-07-31 21:41:09 +0800
commit13b1482cc77f07235308f418e485e9b32300dc6a (patch)
treecced3238a7b7b1cbe45e118b3380b3b57dab1671
parentdd79f8051f61ffe8c463b24a4f9e1ff815afd107 (diff)
downloadgsoc2013-epiphany-13b1482cc77f07235308f418e485e9b32300dc6a.tar
gsoc2013-epiphany-13b1482cc77f07235308f418e485e9b32300dc6a.tar.gz
gsoc2013-epiphany-13b1482cc77f07235308f418e485e9b32300dc6a.tar.bz2
gsoc2013-epiphany-13b1482cc77f07235308f418e485e9b32300dc6a.tar.lz
gsoc2013-epiphany-13b1482cc77f07235308f418e485e9b32300dc6a.tar.xz
gsoc2013-epiphany-13b1482cc77f07235308f418e485e9b32300dc6a.tar.zst
gsoc2013-epiphany-13b1482cc77f07235308f418e485e9b32300dc6a.zip
Fix a mem leak.
2004-07-31 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/ContentHandler.cpp: Fix a mem leak.
-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;
}