Commit 908a8e67 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d10: Check if the type was initialised in d3d10_effect_variable_destroy() (AFL).

parent b826efa0
...@@ -2373,7 +2373,9 @@ static void d3d10_effect_variable_destroy(struct d3d10_effect_variable *v) ...@@ -2373,7 +2373,9 @@ static void d3d10_effect_variable_destroy(struct d3d10_effect_variable *v)
HeapFree(GetProcessHeap(), 0, v->elements); HeapFree(GetProcessHeap(), 0, v->elements);
} }
switch(v->type->basetype) if (v->type)
{
switch (v->type->basetype)
{ {
case D3D10_SVT_VERTEXSHADER: case D3D10_SVT_VERTEXSHADER:
case D3D10_SVT_PIXELSHADER: case D3D10_SVT_PIXELSHADER:
...@@ -2404,6 +2406,7 @@ static void d3d10_effect_variable_destroy(struct d3d10_effect_variable *v) ...@@ -2404,6 +2406,7 @@ static void d3d10_effect_variable_destroy(struct d3d10_effect_variable *v)
default: default:
break; break;
} }
}
} }
static void d3d10_effect_object_destroy(struct d3d10_effect_object *o) static void d3d10_effect_object_destroy(struct d3d10_effect_object *o)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment