diff options
Diffstat (limited to 'embed/xulrunner')
-rw-r--r-- | embed/xulrunner/components/MozDownload.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/embed/xulrunner/components/MozDownload.cpp b/embed/xulrunner/components/MozDownload.cpp index 7b935f5aa..b079b83b3 100644 --- a/embed/xulrunner/components/MozDownload.cpp +++ b/embed/xulrunner/components/MozDownload.cpp @@ -400,8 +400,12 @@ MozDownload::OnStateChange (nsIWebProgress *aWebProgress, nsIRequest *aRequest, rv = mDestination->GetSpec (aDest); NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE); - ephy_file_browse_to (aDest.get (), user_time); + GFile *dest; + dest = g_file_new_for_uri (dest); + ephy_file_browse_to (dest, user_time); + + g_object_unref (dest); g_strfreev (str); } #endif /* HAVE_GECKO_1_9 */ |