Ensure the correct cleanup order for GDI+-related modules in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Oct 2012 11:21:02 +0000 (11:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Oct 2012 11:21:02 +0000 (11:21 +0000)
commit220dcb1a7f58c0c499938ac52ae5c8c937ffd8bc
tree9790c4db2e511615915745634c26e77d4cecccdc
parent7276c69c1c70e26cace37e356de6691ccb59308a
Ensure the correct cleanup order for GDI+-related modules in wxMSW.

GDI+ DLL could be unloaded by wxGdiPlusModule before wxGDIPlusRendererModule::
OnExit() was called, resulting in a crash when trying to call a GDI+ function
from the latter.

Fix this by adding a correct dependency between the modules.

Closes #14769.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/graphics.cpp