summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/ir_to_mesa.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-18 16:29:02 -0700
committerEric Anholt <[email protected]>2010-08-18 16:29:02 -0700
commit3cd233eb5714137dccb6218ad78005511bcc02bd (patch)
treee657ad4485d55dab150977ebe8c960d3f6550462 /src/mesa/program/ir_to_mesa.cpp
parenta482e033082bb0794fdf56c47dd76d949afde6fa (diff)
ir_to_mesa: Don't leak the whole linked assembly program.
Diffstat (limited to 'src/mesa/program/ir_to_mesa.cpp')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp1
1 files changed, 1 insertions, 0 deletions
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;