[Mesa-dev] [PATCH] Avoid ASan new-delete-type-mismatch
Eric Engestrom
eric.engestrom at imgtec.com
Fri Jun 10 10:09:18 UTC 2016
On Thu, Jun 09, 2016 at 05:13:20PM +0200, Stephan Bergmann wrote:
Since you didn't send this patch from your primary email account,
you might want to add this line here, otherwise the author will be
"stephan.bergmann.secondary at googlemail.com":
From: Stephan Bergmann <sbergman at redhat.com>
> ...when Function::domTree is created as DominatorTree in Function::convertToSSA
> (src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp) but destroyed only as base
> Graph in ~Function (src/gallium/drivers/nouveau/codegen/nv50_ir_bb.cpp).
> ---
> src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h
> index b0981ff..115f20e 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h
> @@ -147,7 +147,7 @@ public:
>
> public:
> Graph();
> - ~Graph(); // does *not* free the nodes (make it an option ?)
> + virtual ~Graph(); // does *not* free the nodes (make it an option ?)
>
> inline Node *getRoot() const { return root; }
>
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list