foxwhale icon indicating copy to clipboard operation
foxwhale copied to clipboard

Wayland objects contain a pointer to a "container" resource which will become invalid if we reallocate memory

Open malcolmstill opened this issue 4 years ago • 0 comments

  • We don't currently reallocate memory
  • If we did, we would have a problem with the Object type which holds a pointer to a foxwhale resource (https://github.com/malcolmstill/foxwhale/blob/master/src/wl/context.zig#L30)
  • What we should actually store is the id / handle of the foxwhale resource such that the foxwhale resources are freely reallocatable

malcolmstill avatar Sep 05 '20 00:09 malcolmstill