Fix shared ptr leak in freed ctx
* src/mimedataprovider.cpp (~MimeDataProvider): Set attachment to NULL to unref the shared pointer.