Skip to content
Snippets Groups Projects
Select Git revision
  • 5706c70d8c4472f39e5bd61d1de1caf22381b8b9
  • master default protected
  • fix/bump-version-to28
  • releases/2.8
  • releases/2.7
  • releases/2.6-1
  • feature/add_boundary_in_hostgrid_outside_in_hostgrid
  • bugfix/variant-memory-leak
  • feature/geometryInInOutside
  • releases/2.5-1
  • releases/2.4-1
  • releases/2.2-1
  • releases/2.1-1
  • releases/2.0-2
  • releases/2.0-1
15 results

variant.hh

Blame
  • Lasse Hinrichsen's avatar
    lh1887 authored
    If the variant object was destroyed, the memory for the object itself was properly
    free'd. However, the dtor would never been called on the object (unless it's of literal type)
    and hence memory that was itself managed by the object would leak. The same reasoning
    applies if the type of the object held by the variant changed. This commit fixes this and cleans up
    when appropiate.
    5a16caa7
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    variant.hh 12.55 KiB