mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 06:34:01 +00:00
capi: tvg_canvas_destroy should be able to destroy SwCanvas and GlCanvasa as well
This commit is contained in:
parent
9ad9c3e3f4
commit
919b002068
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ TVG_EXPORT Tvg_Canvas* tvg_swcanvas_create()
|
|||
TVG_EXPORT Tvg_Result tvg_canvas_destroy(Tvg_Canvas* canvas)
|
||||
{
|
||||
if (!canvas) return TVG_RESULT_INVALID_ARGUMENT;
|
||||
delete(reinterpret_cast<SwCanvas*>(canvas));
|
||||
delete(reinterpret_cast<Canvas*>(canvas));
|
||||
return TVG_RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue