Browse Source

Apply patch from Olaf to free state on Context2d::restoreState()

v1.x
Tj Holowaychuk 14 years ago
parent
commit
a9f860ded3
  1. 3
      src/CanvasRenderingContext2d.cc

3
src/CanvasRenderingContext2d.cc

@ -185,6 +185,9 @@ Context2d::saveState() {
void
Context2d::restoreState() {
if (0 == stateno) return;
// Olaf (2011-02-21): Free old state data
free(states[stateno]);
states[stateno] = NULL;
state = states[--stateno];
}

Loading…
Cancel
Save