richedit: Fixed Valgrind error related to undoing.
commitebded1636b850c3e1f1ef253ebaba6b9f11652da
authorDylan Smith <dylan.ah.smith@gmail.com>
Sun, 6 Jul 2008 19:27:40 +0000 (6 15:27 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 7 Jul 2008 12:16:07 +0000 (7 14:16 +0200)
tree930850ad128185383aed4b155942a4f74ff92491
parent5b2bdc06d00ef2a3e3bfd30dc142da5f902ede5b
richedit: Fixed Valgrind error related to undoing.

The error was a memory access of a freed object.  In ME_AddUndoItem I
checked the top of the undo stack to end a coalescing undo transaction,
assuming that this should be either a valid undo item, or NULL, instead
it was already freed.
dlls/riched20/undo.c