translate: Free elt8_func/elt16_func too.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 20 Jun 2012 10:51:57 +0000 (11:51 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 29 Jun 2012 11:21:08 +0000 (12:21 +0100)
These were leaking.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/translate/translate_sse.c

index 54414ef077fc4784261f47f74c25b4d3f7d08d3f..c2dd42db96e44a583dd89ef9dc94e8a7459402c8 100644 (file)
@@ -1442,8 +1442,10 @@ static void translate_sse_release( struct translate *translate )
 {
    struct translate_sse *p = (struct translate_sse *)translate;
 
-   x86_release_func( &p->linear_func );
+   x86_release_func( &p->elt8_func );
+   x86_release_func( &p->elt16_func );
    x86_release_func( &p->elt_func );
+   x86_release_func( &p->linear_func );
 
    os_free_aligned(p);
 }