aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed-persist.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-13 06:30:03 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-13 06:30:03 +0800
commit237c938fd9b0cbbe33c019e8791771a99e7a6d29 (patch)
tree4ffe055139b466f25f8936255ffb955b937452ca /embed/mozilla/mozilla-embed-persist.cpp
parentc86e7ace9cc6a3a701fc19c5183c5c6256694abf (diff)
downloadgsoc2013-epiphany-237c938fd9b0cbbe33c019e8791771a99e7a6d29.tar
gsoc2013-epiphany-237c938fd9b0cbbe33c019e8791771a99e7a6d29.tar.gz
gsoc2013-epiphany-237c938fd9b0cbbe33c019e8791771a99e7a6d29.tar.bz2
gsoc2013-epiphany-237c938fd9b0cbbe33c019e8791771a99e7a6d29.tar.lz
gsoc2013-epiphany-237c938fd9b0cbbe33c019e8791771a99e7a6d29.tar.xz
gsoc2013-epiphany-237c938fd9b0cbbe33c019e8791771a99e7a6d29.tar.zst
gsoc2013-epiphany-237c938fd9b0cbbe33c019e8791771a99e7a6d29.zip
Dont try to use class members after the class has been deleted.
2003-06-13 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/ProgressListener.cpp: Dont try to use class members after the class has been deleted. * embed/mozilla/mozilla-embed-persist.cpp: Fix use of uninitialized var.
Diffstat (limited to 'embed/mozilla/mozilla-embed-persist.cpp')
-rw-r--r--embed/mozilla/mozilla-embed-persist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed-persist.cpp b/embed/mozilla/mozilla-embed-persist.cpp
index 4677613ea..8a42e5b03 100644
--- a/embed/mozilla/mozilla-embed-persist.cpp
+++ b/embed/mozilla/mozilla-embed-persist.cpp
@@ -183,7 +183,7 @@ impl_save (EphyEmbedPersist *persist)
}
nsCOMPtr<nsILocalFile> file;
- NS_NewLocalFile(NS_ConvertUTF8toUCS2(filename), PR_TRUE, getter_AddRefs(file));
+ rv = NS_NewLocalFile(NS_ConvertUTF8toUCS2(filename), PR_TRUE, getter_AddRefs(file));
if (NS_FAILED(rv) || !file) return G_FAILED;
nsCOMPtr<nsILocalFile> path;