MCPcopy Create free account
hub / github.com/NetHack/NetHack / delete_dirty_rect

Function delete_dirty_rect

outdated/win/gem/gr_rect.c:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 return (new);
27}
28void
29delete_dirty_rect(dirty_rect *this)
30{
31 if (this == NULL)
32 return;
33 if (this->rects)
34 free(this->rects);
35 /* In case the Pointer is reused wrongly */
36 this->rects = NULL;
37 this->max = 0;
38 this->used = 0;
39 free(this);
40}
41static int gc_inside(GRECT *frame, GRECT *test);
42static int gc_touch(GRECT *frame, GRECT *test);
43static void gc_combine(GRECT *frame, GRECT *test);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected