mohabouje / WinToast

WinToast is a lightly library written in C++ which brings a complete integration of the modern toast notifications of Windows 8 & Windows 10. Toast notifications allows your app to inform the users about relevant information and timely events that they should see and take action upon inside your app, such as a new instant message, a new friend request, breaking news, or a calendar event.
MIT License
704 stars 130 forks source link

Resource management upgrade #50

Closed Electronicks closed 4 years ago

Electronicks commented 4 years ago

Hi.

I made this change that makes use of CComPtr instead of the regular ComPtr. According to this documentation it is the proper way to handle cleanly ComObj without doing the cleanup manually.

Also, I found that calling clear() in the WinToast destructor fixed some crashing in the cleanup procedures. It could fix some of the currently listed issues.

Thanks