diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-17 18:40:11 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-17 19:27:58 -0400 |
commit | ab5ca5225a9ebdfb856ba9e6e770cc41c1badc28 (patch) | |
tree | d899b41f41796615f04fa7fb0db6911fe0c23538 | |
parent | 09ff569b0452f89b5823018fb27307719a046dd0 (diff) | |
download | gtk+-ab5ca5225a9ebdfb856ba9e6e770cc41c1badc28.tar.gz |
list box: Remove unnecessary checks
Again, coverity takes these as clues to complain.
-rw-r--r-- | gtk/gtklistbox.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c index feec990b54..b9866d0cbc 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -2147,9 +2147,9 @@ gtk_list_box_update_header (GtkListBox *box, return; row = g_sequence_get (iter); + g_object_ref (row); + before_iter = gtk_list_box_get_previous_visible (box, iter); - if (row) - g_object_ref (row); before_row = NULL; if (before_iter != NULL) { @@ -2197,8 +2197,7 @@ gtk_list_box_update_header (GtkListBox *box, } if (before_row) g_object_unref (before_row); - if (row) - g_object_unref (row); + g_object_unref (row); } static void |