gdiplus: do not call delete_element(NULL)

Vincent Povirk madewokherd+8cd9 at gmail.com
Sat Jan 24 00:42:44 CST 2009


In several cases we call delete_element(x) after x has been set to
NULL or after an unsuccessful clone_element(y, &x) call. clone_element
always gives a NULL element pointer when it fails.
delete_element(NULL) will dereference the NULL and crash. These lines
will never be reached with a non-NULL element.

Vincent Povirk



More information about the wine-patches mailing list