[patches:#583] fix pointer issues with [list store]

Status: open
Group: bugfix
Created: Mon Jul 24, 2017 07:58 PM UTC by Anonymous
Last Updated: Mon Jul 24, 2017 07:58 PM UTC
Owner: Miller Puckette
Attachments:

this commit fixes two issues:

1) mistake in list_store_get (wrong onset for alist_toatoms)
2) when the alist moves in memory (because of memmove() and/or resizebytes()) gpointer atoms point to an old location in memory. I added a function list_store_restore_gpointers() which is called whenever that happens.

I also attached a test patch.

Christof


Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to https://sourceforge.net/p/pure-data/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pure-data/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.