A memory leak error in WeakReference Implement, Plz check it

In juce_WeakReference.h :

    SharedRef getSharedPointer (ObjectType* object)
    {
        if (sharedPointer == nullptr)
        {
            sharedPointer = *new SharedPointer (object);
        }
        else
        {
            // You're trying to create a weak reference to an object that has already been deleted!!
            jassert (sharedPointer->get() != nullptr);
        }

        return sharedPointer;
    }

sharedPointer = *new SharedPointer (object); // here a SharedPointer pointer was created without delete

Its a little hard to notice, but the SharedPointer is implicitly converted into a SharedRef (= ReferenceCountedObject). What might be really missing is „noexcept“ as a leak could occur when the CTor of ReferenceCountedObject or anything else along the way throws an exception and the new object is in fact not deleted. But from the looks of it even when the compiler might not know, we know that an exception cannot be thrown.
Best, Rincewind