glsl: Don't bother unsetting a destructor that was never set.
This was totally copied and pasted from glsl_symbol_table.
This commit is contained in:
@@ -35,13 +35,10 @@ public:
|
|||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the user *does* call delete, that's OK, we will just
|
/* If the user *does* call delete, that's OK, we will just talloc_free. */
|
||||||
* talloc_free in that case. Here, C++ will have already called the
|
static void operator delete(void *entry)
|
||||||
* destructor so tell talloc not to do that again. */
|
|
||||||
static void operator delete(void *table)
|
|
||||||
{
|
{
|
||||||
talloc_set_destructor(table, NULL);
|
talloc_free(entry);
|
||||||
talloc_free(table);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
symbol_table_entry(ir_variable *v) : v(v), f(0), t(0) {}
|
symbol_table_entry(ir_variable *v) : v(v), f(0), t(0) {}
|
||||||
|
Reference in New Issue
Block a user