Graphics contexts are released using freeGC. Your application is responsible for freeing the graphics contexts it creates. Graphics contexts can be freed at any time, but cannot be used for drawing after being freed.
| gc | gc := CgWindow default createGC: None values: nil. "Perform some drawing operations using the gc..." gc freeGC.