diff options
author | Carl Worth <cworth@cworth.org> | 2010-06-23 18:25:04 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-06-23 19:00:42 -0700 |
commit | e01193af325cbdde51b3219c85c58f19d5a87f1b (patch) | |
tree | 8d73fe130ac1b21361f260feb13e0beeae6348ae /ir.h | |
parent | 522de3f5ecbfe3f84e92ac03d1438a44eb1beae7 (diff) |
Close memory leak in ir_call::get_error_instruction.
By propagating a 'ctx' parameter through these calls.
This fix happens to have no impact on glsl-orangebook-ch06-bump.frag,
(since it doesn't trigger any errors).
Diffstat (limited to 'ir.h')
-rw-r--r-- | ir.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -645,8 +645,10 @@ public: /** * Get a generic ir_call object when an error occurs + * + * Any allocation will be performed with 'ctx' as talloc owner. */ - static ir_call *get_error_instruction(); + static ir_call *get_error_instruction(void *ctx); /** * Get an iterator for the set of acutal parameters |