Skip to content

Q: re, Example does not release model reference #2

Open
@DanRathbun

Description

@DanRathbun

In the "Using SketchUp Live C API" example ...
https://github.com/SketchUp/sketchup-live-c-api/blob/master/docs/using-live-c-api.md#example

The ruby_num_faces function does not release it's reference to the "live" model.

The primer page for standalone C API use has an example comment that says to always release the model reference, viz:

  // Must release the model or there will be memory leaks
  SUModelRelease(&model);

Q: Is releasing the model reference not needed for the "live" C API use ?

Q: What other differences are there from what is described in the standalone use primer section ...
Memory Management in the SketchUp C API ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions