It's not an idiom. It is taken from a well known nursery rhyme:
Mary had a little lamb......
This is Somerset Maugham, right? Everything dear to her eventually died. In fact, there was nothing dear to her that did not die. That is the meaning of the phrase.