Skip to content

Mismatched new/free in gltf2 importer #2668

Closed
@theakman2

Description

In code/glTF2/glTF2Importer.cpp, there's the following code:

image

Note how the aiVectorKey is created using new instead of new[]. The destructor for aiNodeAnim (in: include/assimp/anim.h) uses the delete[] operator for freeing this memory:

image

The aiVectorKeys should be allocated using the new[] syntax.

Activity

added a commit that references this issue on Sep 22, 2019
61fa619
added a commit that references this issue on Sep 25, 2019

Merge pull request #2669 from theakman2/issue_2668

a75fc45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Mismatched new/free in gltf2 importer · Issue #2668 · assimp/assimp