diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2006-01-15 05:27:08 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2006-01-15 05:27:08 +0800 |
commit | 01299e9677c4949e4c3e7e8a98823b245261af63 (patch) | |
tree | 9e4d2a4f78ca8adae63a3b540d85caa1a68ad4ff /embed | |
parent | 7ee5680874383d1d111ae3cd3dec10c5b4111385 (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
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); |