Mary died of smallpox at Kensington Palace on 28 December 1694 .
Mary died at Kensington Palace shortly after midnight on the morning of 28 December .