aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCrispin Flowerday <gnome@flowerday.cx>2006-01-15 05:27:08 +0800
committerCrispin Flowerday <crispin@src.gnome.org>2006-01-15 05:27:08 +0800
commit01299e9677c4949e4c3e7e8a98823b245261af63 (patch)
tree9e4d2a4f78ca8adae63a3b540d85caa1a68ad4ff
parent7ee5680874383d1d111ae3cd3dec10c5b4111385 (diff)
downloadgsoc2013-epiphany-01299e9677c4949e4c3e7e8a98823b245261af63.tar
gsoc2013-epiphany-01299e9677c4949e4c3e7e8a98823b245261af63.tar.gz
gsoc2013-epiphany-01299e9677c4949e4c3e7e8a98823b245261af63.tar.bz2
gsoc2013-epiphany-01299e9677c4949e4c3e7e8a98823b245261af63.tar.lz
gsoc2013-epiphany-01299e9677c4949e4c3e7e8a98823b245261af63.tar.xz
gsoc2013-epiphany-01299e9677c4949e4c3e7e8a98823b245261af63.tar.zst
gsoc2013-epiphany-01299e9677c4949e4c3e7e8a98823b245261af63.zip
Simplify creation and reference counting of the EphyDirectoryProvider
2006-01-14 Crispin Flowerday <gnome@flowerday.cx> * embed/mozilla/mozilla-embed-single.cpp (init_services): Simplify creation and reference counting of the EphyDirectoryProvider class.
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp8
2 files changed, 8 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 31a2ea99a..eeba0a47b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-01-14 Crispin Flowerday <gnome@flowerday.cx>
+
+ * embed/mozilla/mozilla-embed-single.cpp (init_services):
+
+ Simplify creation and reference counting of the
+ EphyDirectoryProvider class.
+
2006-01-14 Christian Persch <chpe@cvs.gnome.org>
* m4/gecko.m4:
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index f0675d355..d904bda4f 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -534,13 +534,7 @@ init_services (MozillaEmbedSingle *single)
gtk_moz_embed_set_comp_path (MOZILLA_HOME);
#ifdef HAVE_MOZILLA_TOOLKIT
- EphyDirectoryProvider *dirProvider = new EphyDirectoryProvider ();
- if (!dirProvider) return FALSE;
-
- NS_ADDREF (dirProvider);
- nsCOMPtr<nsIDirectoryServiceProvider> dp (do_QueryInterface (dirProvider));
- NS_RELEASE (dirProvider);
-
+ nsCOMPtr<nsIDirectoryServiceProvider> dp = new EphyDirectoryProvider ();
if (!dp) return FALSE;
gtk_moz_embed_set_directory_service_provider (dp);