summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_save_api.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-07-13 08:47:37 -0600
committerBrian Paul <[email protected]>2009-07-13 08:47:37 -0600
commit9615daa9324341f6a56932dc46b807f402d18283 (patch)
tree611f086092443717c44bc31f29bb0f311b0d9d24 /src/mesa/vbo/vbo_save_api.c
parentbb4c70358778f28f644ae493b5d8163e76e9fddb (diff)
parent680f7d09b00fdec0dbe5e357639d6b445bb9266e (diff)
Merge branch 'mesa_7_5_branch'
Diffstat (limited to 'src/mesa/vbo/vbo_save_api.c')
-rw-r--r--src/mesa/vbo/vbo_save_api.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index f8e46ff9c94..d00d304d2ef 100644
--- 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;
+ }
}