meson: Don't build intel shared components by default
[mesa.git] / src / util / ralloc.c
index 9cce9e02f68637f33ec776221cbd8d48c5ad72b0..42cfa2e391d52df68db265b4a4488c469294e0df 100644 (file)
@@ -285,7 +285,7 @@ ralloc_steal(const void *new_ctx, void *ptr)
       return;
 
    info = get_header(ptr);
-   parent = get_header(new_ctx);
+   parent = new_ctx ? get_header(new_ctx) : NULL;
 
    unlink_block(info);