Correct erroneous g_object_unref calls
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 28 Apr 2012 10:41:05 +0000 (12:41 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 28 Apr 2012 10:41:05 +0000 (12:41 +0200)
commit3391f492daa7069de23f93a513ba361c59dedf72
tree9a9b9a409e722eb74c2d48680810ed383b2a9e95
parent4aa91ac6e0ca0d02beb1d947fac861ef9a90d516
Correct erroneous g_object_unref calls

commit e89158e8abd2dae27d985e3574eb5aa1d265fc66 placed g_object_unref calls after every instance
of *_set_model - In most instances this was correct, but not all.  When (for example)
gtk_tree_view_set_model (view, model) is called, it takes a ref to model, but it will then
unref it upon the next call to _set_model and/or when view is destroyed.
Unreffing the model ourself, is therefore appropriate only when we have created it ourselves.
This change fixes the few instances where this was not the case.
src/ui/gui/psppire-dictview.c
src/ui/gui/regression-dialog.c