summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_llvm.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-04-30 19:00:58 +0100
committerJosé Fonseca <[email protected]>2010-04-30 19:32:20 +0100
commite9bf09a98a624e594bdea2503326bb693b8cf9b8 (patch)
treea54d227a4c6972a2bc23e1ff4be05806c2773487 /src/gallium/auxiliary/draw/draw_llvm.c
parent124ef032233d7afc2725e8ded0939838e7b2a76b (diff)
draw: Fix memory leaks in llvm code.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index 3b2df054c3c..2c234285b5e 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -207,6 +207,8 @@ draw_llvm_create(struct draw_context *draw)
void
draw_llvm_destroy(struct draw_llvm *llvm)
{
+ LLVMDisposePassManager(llvm->pass);
+
FREE(llvm);
}