When I debugging someone else's code, how could I found when a pointer is deleted?
How about a GDB watchpoint? You can set a watchpoint on the pointer in question and see when the program accesses to delete its referent.