Skip to content

Memory safety #21

@thinxer

Description

@thinxer

The garbage collector in newer Go (e.g. 1.5) got smarter. jerr sometimes gets collected and we crash.

Here:

var jerr C.struct_jpeg_error_mgr

and here:
var jerr C.struct_jpeg_error_mgr

It is possible the source/dest managers will have similar issues. I've added some ugly code to keep jerr and mgr referenced and the crashes went away.

Some related issues:

Metadata

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