Also clear notebook associations when closing a MemoryCalendar.
I've added a test to demonstrate that stored Incidences in a MemoryCalendar are still stored by the calendar after closing it if they are associated to a notebook.
The patch is simple and call the clearNotebookAssociations()
in the close()
function.
@winterz, do you have any remarks on the patch ?