From: Brian Paul Date: Sun, 3 Aug 2008 17:13:12 +0000 (-0600) Subject: added null ptr check (fix bug 16959) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61b3ce8f9787edd7d5678f87aa4c2a0a6f8c0e45;p=mesa.git added null ptr check (fix bug 16959) --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 3dec27b6bd1..aa9d1129996 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -683,7 +683,8 @@ delete_renderbuffer_cb(GLuint id, void *data, void *userData) { struct gl_renderbuffer *rb = (struct gl_renderbuffer *) data; rb->RefCount = 0; /* see comment for FBOs above */ - rb->Delete(rb); + if (rb->Delete) + rb->Delete(rb); }