gdiplus: do not call delete_element(NULL)

Andrew Nguyen arethusa26 at gmail.com
Sat Jan 24 00:48:25 CST 2009


On Sat, Jan 24, 2009 at 12:42 AM, Vincent Povirk
<madewokherd+8cd9 at gmail.com> wrote:
> 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
>
>
>

You have forgotten to attach a patch.



More information about the wine-devel mailing list