diff --git a/toolkit/xre/nsAppData.cpp b/toolkit/xre/nsAppData.cpp index 31ea2b36b532..affc231ec9f9 100644 --- a/toolkit/xre/nsAppData.cpp +++ b/toolkit/xre/nsAppData.cpp @@ -115,7 +115,7 @@ XRE_CreateAppData(nsILocalFile* aINIFile, nsXREAppData **aAppData) { NS_ENSURE_ARG(aINIFile && aAppData); - nsAutoPtr data = new ScopedAppData(); + nsAutoPtr data(new ScopedAppData()); if (!data) return NS_ERROR_OUT_OF_MEMORY;