gui: Avoid referencing freed data upon closing data window. 20130926030516/pspp 20130927030516/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 26 Sep 2013 04:23:41 +0000 (21:23 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 26 Sep 2013 04:27:22 +0000 (21:27 -0700)
commit12f0fc452580c0414d045ea1d8d94542ec3c47c8
tree6700f0c063f33a473b50417626815c33824744f2
parentda5dd1a396f05dbf068fe131d844316a6d6016f3
gui: Avoid referencing freed data upon closing data window.

Without this commit, the following procedure always yielded Glib/GTK+
warnings or criticals for me:

1. Invoke PSPPIRE with a .sav file specified on the command line.
2. Choose Utilities|Variables...
3. Select a variable in the dialog box, then click on Cancel.
3. Close the output window using the window manager.
4. Close the data window using the window manager.

This commit fixes the problem.
src/ui/gui/psppire-data-store.c
src/ui/gui/psppire-data-window.c