riched20: fix memory leak
Alexandre Julliard
julliard at winehq.org
Wed Dec 7 03:39:42 CST 2011
Pierre Schweitzer <pierre at reactos.org> writes:
> @@ -102,6 +102,7 @@ ME_UndoItem *ME_AddUndoItem(ME_TextEditor *editor, ME_DIType type, const ME_Disp
> }
> default:
> assert(0 == "AddUndoItem, unsupported item type");
> + ME_DestroyDisplayItem(pItem);
> return NULL;
It's not useful to free memory in unreachable code paths.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list