Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 877
    • Issues 877
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 235
    • Merge requests 235
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

A Gitlab update will be applied on June 5th , between 6PM - 7PM EDT (UTC-04:00). This site may have intermittent delays during that time.

  • VTKVTK
  • VTKVTK
  • Issues
  • #18334
Closed
Open
Issue created Oct 06, 2021 by Ben Boeckel@ben.boeckel⛰Owner

RegisterAndGetOutputString methods need work

The RegisterAndGetOutputString methods on the following classes need help in some way:

  • vtkDelimitedTextWriter
  • vtkX3DExporter
  • vtkX3DExporterWriter
  • vtkGeoJSONWriter
  • vtkDataWriter

They are documented to return memory which needs free'd (using delete[]), but the wrappers do not know this, so they end up being leaked if called from any wrapping language.

I think they'd be better off as std::string returns and removal of any memory management shenanigans instead (with new names and deprecations for the existing names since they cannot be changed compatibly).

Cc: @dgobbi

Assignee
Assign to
Time tracking