richedit: Prevented a dereference of a freed pointer.
commitc9977df85306f0403c7eeeee7fd041d9b3ac88f8
authorDylan Smith <dylan.ah.smith@gmail.com>
Sat, 27 Dec 2008 05:06:40 +0000 (27 00:06 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Sat, 27 Dec 2008 19:22:53 +0000 (27 20:22 +0100)
tree1a598e3079f8e24805e10a69944133589a7b6b72
parenta8a97091fe3875b589db3612bec8377e30ad4199
richedit: Prevented a dereference of a freed pointer.

On WM_DESTROY the editor was getting freed, then it was used to obtain
a handle to the editor.  This patch moves it just before the editor is
freed within ME_DestroyEditor.
dlls/riched20/editor.c