Some alteration to delete and destroyLink

A NULL pointer is allowed to send to the 2nd parameter