Skip to content
Commit d70b300c authored by Simon Feltman's avatar Simon Feltman
Browse files

Fix memory management problems with struct arguments to signals

Replicate struct marshaling logic for determining if struct arguments
to signals should be passed by reference to callbacks.
Maintain a list of these structs and apply an in-place copy of the struct
pointer if the struct wrapper is held longer than the duration of the
Python callback. This allows for both mutation of struct arguments from
callbacks as well as memory safety incase a callbacks holds onto the struct.

https://bugzilla.gnome.org/show_bug.cgi?id=736175
parent 09161ff6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment