Mesa (master): ir_to_mesa: Don't leak the whole linked assembly program.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Aug 18 23:31:04 UTC 2010
Module: Mesa
Branch: master
Commit: 3cd233eb5714137dccb6218ad78005511bcc02bd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3cd233eb5714137dccb6218ad78005511bcc02bd
Author: Eric Anholt <eric at anholt.net>
Date: Wed Aug 18 16:29:02 2010 -0700
ir_to_mesa: Don't leak the whole linked assembly program.
---
src/mesa/program/ir_to_mesa.cpp | 1 +
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 eb3be91..b566706 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;
More information about the mesa-commit
mailing list