Garbage collection fix

Made a change to Notepad new note code to explictly delete temp item.