diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-05 09:17:51 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-05 09:23:59 +0100 |
commit | e5329805394c94c915e43a0040b51d5019b4a90e (patch) | |
tree | 4ff5c649a74c1d2f794e0cb0a2f80fca44eb6a9f /src/cairo-recording-surface-private.h | |
parent | 6a06e0ef7b534355d0f3b4885159ffc37dbc3867 (diff) | |
download | cairo-e5329805394c94c915e43a0040b51d5019b4a90e.tar.gz |
recording: Avoid refcycles by always copying the command array.
Short-term solution to avoid the refleaks and to make the test suite
happy. A more elegant solution would be to track the references and
avoid the substantial memory overhead of copying the recording surfaces.
Thanks to Benjamin Otte for pointing out the solution to avoiding
refcycles.
Diffstat (limited to 'src/cairo-recording-surface-private.h')
-rw-r--r-- | src/cairo-recording-surface-private.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cairo-recording-surface-private.h b/src/cairo-recording-surface-private.h index 4a5c9dbd6..4ec5f88b4 100644 --- a/src/cairo-recording-surface-private.h +++ b/src/cairo-recording-surface-private.h @@ -132,7 +132,6 @@ typedef struct _cairo_recording_surface { cairo_clip_t clip; cairo_array_t commands; - cairo_surface_t *commands_owner; int replay_start_idx; } cairo_recording_surface_t; |