diff --git a/toolkit/components/maintenanceservice/serviceinstall.cpp b/toolkit/components/maintenanceservice/serviceinstall.cpp index ef825f78ddd..fda3e7bbd0b 100644 --- a/toolkit/components/maintenanceservice/serviceinstall.cpp +++ b/toolkit/components/maintenanceservice/serviceinstall.cpp @@ -11,7 +11,7 @@ #include #include -#include "mozilla/Scoped.h" +#include "mozilla/UniquePtr.h" #include "serviceinstall.h" #include "servicebase.h" @@ -64,7 +64,7 @@ GetVersionNumberFromPath(LPWSTR path, DWORD &A, DWORD &B, DWORD &C, DWORD &D) { DWORD fileVersionInfoSize = GetFileVersionInfoSizeW(path, 0); - mozilla::ScopedDeleteArray fileVersionInfo(new char[fileVersionInfoSize]); + mozilla::UniquePtr fileVersionInfo(new char[fileVersionInfoSize]); if (!GetFileVersionInfoW(path, 0, fileVersionInfoSize, fileVersionInfo.get())) { LOG_WARN(("Could not obtain file info of old service. (%d)", @@ -285,7 +285,7 @@ SvcInstall(SvcInstallAction action) // Get the service config information, in particular we want the binary // path of the service. - mozilla::ScopedDeleteArray serviceConfigBuffer(new char[bytesNeeded]); + mozilla::UniquePtr serviceConfigBuffer(new char[bytesNeeded]); if (!QueryServiceConfigW(schService, reinterpret_cast(serviceConfigBuffer.get()), bytesNeeded, &bytesNeeded)) {