projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
258f005
)
Check for prim/vertex store non-null before messing with refcounts.
author
Keith Whitwell
<keith@tungstengraphics.com>
Wed, 10 Aug 2005 14:13:45 +0000
(14:13 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Wed, 10 Aug 2005 14:13:45 +0000
(14:13 +0000)
src/mesa/tnl/t_save_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_save_api.c
b/src/mesa/tnl/t_save_api.c
index b43b048083f7d1b9fe3db42f479ea1f16481dc91..9788468d508f1e4d9313e7c1a4e22f1445132be8 100644
(file)
--- a/
src/mesa/tnl/t_save_api.c
+++ b/
src/mesa/tnl/t_save_api.c
@@
-1714,9
+1714,11
@@
void _tnl_save_destroy( GLcontext *ctx )
* display lists yet to be destroyed, so it may not yet be time to
* free these items.
*/
- if ( --tnl->save.prim_store->refcount == 0 )
+ if (tnl->save.prim_store &&
+ --tnl->save.prim_store->refcount == 0 )
FREE( tnl->save.prim_store );
- if ( --tnl->save.vertex_store->refcount == 0 )
+ if (tnl->save.vertex_store &&
+ --tnl->save.vertex_store->refcount == 0 )
FREE( tnl->save.vertex_store );
}