diff --git a/reactos/subsys/win32k/objects/polyfill.c b/reactos/subsys/win32k/objects/polyfill.c index de1fd212c3e..ddc9b356ad3 100644 --- a/reactos/subsys/win32k/objects/polyfill.c +++ b/reactos/subsys/win32k/objects/polyfill.c @@ -292,21 +292,6 @@ POLYGONFILL_MakeEdgeList(PPOINT Points, int Count) return list; fail: - if (list != NULL) - { - EngFreeMem(list); - } - - if (list->Edges != NULL) - { - int t; - for (t=0; Count;t++) - { - if (list->Edges[t] != NULL) - EngFreeMem(list->Edges[t]); - } - EngFreeMem(list->Edges); - } DPRINT1("Out Of MEMORY!!\n"); POLYGONFILL_DestroyEdgeList ( list );