gui: Properly manage ref counts of combo box and tree view models.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 25 Apr 2012 05:16:30 +0000 (22:16 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 25 Apr 2012 05:19:41 +0000 (22:19 -0700)
commite89158e8abd2dae27d985e3574eb5aa1d265fc66
tree3acec365432532049fafa2f3f3d17f887b88fa29
parent7557c4bf71b244226c7a248177715dade26aabe5
gui: Properly manage ref counts of combo box and tree view models.

gtk_combo_box_set_model() and gtk_tree_view_set_model() add a
reference to the passed-in model, instead of transferring a
reference from the caller.  A lot of the calls to these functions,
however, assumed that a reference was transferred and therefore
leaked a reference.  This fixes them up.

This doesn't change PsppireValueEntry, because there's an ongoing
discussion about that.
src/ui/gui/aggregate-dialog.c
src/ui/gui/checkbox-treeview.c
src/ui/gui/compute-dialog.c
src/ui/gui/count-dialog.c
src/ui/gui/psppire-dictview.c
src/ui/gui/psppire-output-window.c
src/ui/gui/psppire-selector.c
src/ui/gui/regression-dialog.c
src/ui/gui/text-data-import-dialog.c