"my" or "me" will never get NULL until you explicitely set it to NULL and hence ptr_remove will never be called. The action will be terminated as soon as the corresponding entity gets removed.
Always learn from history, to be sure you make the same mistakes again...