I was playing heads up in a Texas holdem game and I mucked my hand. and the other player didn't realize and mucked also. Who gets the pot?
If your opponent did not release his hand then there would be no confusion, which is why it's smart not to release your hand until you've received the pot. However, the fact that there is confusion doesn't mean we can't sort it out. The pot is always awarded to the last live hand; at the moment you folded your opponent held the last live hand and so they are considered the winner.