OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff1a53
)
vbo: fix vbo/dlist memory leak
author
Brian Paul
<brianp@vmware.com>
Fri, 10 Jul 2009 18:55:30 +0000
(12:55 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 10 Jul 2009 19:09:09 +0000
(13:09 -0600)
Based on a patch by kristof.ralovich@gmail.com
src/mesa/vbo/vbo_save_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_save_api.c
b/src/mesa/vbo/vbo_save_api.c
index
85cb79c
..
a7f2706
100644
(file)
--- a/
src/mesa/vbo/vbo_save_api.c
+++ b/
src/mesa/vbo/vbo_save_api.c
@@
-1144,6
+1144,11
@@
static void vbo_destroy_vertex_list( GLcontext *ctx, void *data )
if ( --node->prim_store->refcount == 0 )
FREE( node->prim_store );
+
+ if (node->current_data) {
+ FREE(node->current_data);
+ node->current_data = NULL;
+ }
}