From: Eric Anholt Date: Wed, 18 Aug 2010 23:29:02 +0000 (-0700) Subject: ir_to_mesa: Don't leak the whole linked assembly program. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3cd233eb5714137dccb6218ad78005511bcc02bd;p=mesa.git ir_to_mesa: Don't leak the whole linked assembly program. --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index eb3be913e7f..b566706d72a 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2633,6 +2633,7 @@ _mesa_ir_link_shader(GLcontext *ctx, struct gl_shader_program *prog) if (!ok) { return GL_FALSE; } + _mesa_reference_program(ctx, &linked_prog, NULL); } return GL_TRUE;