[0.4.12][INPUT] Don't race the system to free an imagelist
authorMark Jansen <mark.jansen@reactos.org>
Sun, 16 Jun 2019 19:54:44 +0000 (21:54 +0200)
committerJoachim Henze <Joachim.Henze@reactos.org>
Mon, 17 Jun 2019 23:39:38 +0000 (01:39 +0200)
commite9fb7dcee2d2cc1a6baa0b8f030f58d9ff2b9b49
tree7bc99c4ad89089b0732507c4c9e3b388ab8c2811
parentec3cc13ab04709eec28b6fea3d4576c07ee743c2
[0.4.12][INPUT] Don't race the system to free an imagelist

Fixes CORE-16121
"reproducible heap assertion at 2nd setup stage when
adding additional keyboard layouts"

https://reactos.org/testman/compare.php?ids=68231,68234

cherry-picked from 0.4.13-dev-459-g
f3d1d380412dada010053165ec5070907b41d10c
dll/cpl/input/settings_page.c