Let's see--there's sadism, masochism, and schadenfreude. Then we have the dog-in-the-manger attitude--not quite the same, but somewhat overlapping. "I can't use it, but I'm damned if I'm gonna sit here and see you enjoy it."