Fix possible memory corruption when creating dialogs with selectors. 20121119030501/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 19 Nov 2012 10:15:49 +0000 (11:15 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 19 Nov 2012 10:15:49 +0000 (11:15 +0100)
commit5166b8309e1fec33d5122de360ba212ad3107a2c
treeb71d3db2d37cefeee56769298ab1c126d7946309
parentdda82f83e66a6e5efa72f0e15a1f76a61f990e92
Fix possible memory corruption when creating dialogs with selectors.

The PsppireSelector widget's class structure contains a map of selectors
indexed by the source widget with which they are associated.  Until now, that
map was never depopulated.   This could have caused problems if newly created
widgets happened to use the same address as old, destroyed ones.  This change
removes selectors from the map upon destruction.
src/ui/gui/psppire-selector.c
src/ui/gui/psppire-selector.h