diff --git a/netwerk/cache/nsDeleteDir.cpp b/netwerk/cache/nsDeleteDir.cpp index 99a6a809a083..1f3f3934e970 100644 --- a/netwerk/cache/nsDeleteDir.cpp +++ b/netwerk/cache/nsDeleteDir.cpp @@ -80,10 +80,10 @@ nsDeleteDir::Shutdown(bool finishDeleting) for (int32_t i = gInstance->mTimers.Count(); i > 0; i--) { nsCOMPtr timer = gInstance->mTimers[i-1]; gInstance->mTimers.RemoveObjectAt(i-1); - timer->Cancel(); nsCOMArray *arg; timer->GetClosure((reinterpret_cast(&arg))); + timer->Cancel(); if (finishDeleting) dirsToRemove.AppendObjects(*arg);