diff options
Diffstat (limited to 'mesalib/src/glsl/glsl_symbol_table.h')
-rw-r--r-- | mesalib/src/glsl/glsl_symbol_table.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesalib/src/glsl/glsl_symbol_table.h b/mesalib/src/glsl/glsl_symbol_table.h index f26de5243..02c45b2e0 100644 --- a/mesalib/src/glsl/glsl_symbol_table.h +++ b/mesalib/src/glsl/glsl_symbol_table.h @@ -70,6 +70,11 @@ public: /* If the user *does* call delete, that's OK, we will just * talloc_free in that case. Here, C++ will have already called the * destructor so tell talloc not to do that again. */ + static void operator delete(void *table, void *ctx) + { + talloc_set_destructor(table, NULL); + talloc_free(table); + } static void operator delete(void *table) { talloc_set_destructor(table, NULL); |