From a theoretical perspective the only things a magnet could affect are the speaker, mike and (with a bit of a stretch) the ferrite core of the antenna if it has one. A magnet should not bother the microprocessor or memory. Most well-made cases with magnetic clasps have a shield between the magnet and the phone.