mesa: use _slang_alloc()
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 12 Dec 2008 17:29:15 +0000 (10:29 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Jan 2009 16:09:47 +0000 (09:09 -0700)
(cherry picked from commit b4019483dea406e997ae1c6b61b41cc49786c8ce)

src/mesa/shader/slang/slang_compile_function.c
src/mesa/shader/slang/slang_typeinfo.c

index ba65be58df6143723675cb23381a0adbda57957a..c460627a41775cd0aae4ddfb952de6c0e50c5290 100644 (file)
@@ -70,7 +70,7 @@ slang_function *
 slang_function_new(slang_function_kind kind)
 {
    slang_function *fun = (slang_function *)
-      _mesa_malloc(sizeof(slang_function));
+      _slang_alloc(sizeof(slang_function));
    if (fun) {
       slang_function_construct(fun);
       fun->kind = kind;
index 2006c7e35ec8ec94f0d65e0778b51629d230103a..5ee54c3a1197ce3c3221a4c8ed8fdeafda945e05 100644 (file)
@@ -296,7 +296,7 @@ slang_type_specifier_new(slang_type_specifier_type type,
                          struct slang_type_specifier_ *_array)
 {
    slang_type_specifier *spec =
-      (slang_type_specifier *) _mesa_malloc(sizeof(slang_type_specifier));
+      (slang_type_specifier *) _slang_alloc(sizeof(slang_type_specifier));
    if (spec) {
       spec->type = type;
       spec->_struct = _struct;