diff options
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-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); |