What is the meaning of [A Dog in The Manger]

A person who selfishly prevent others from using, enjoying or profiting from something even though he/ she cannot use or enjoy it himself.