summaryrefslogtreecommitdiff
path: root/src/eom-file-chooser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eom-file-chooser.c')
-rw-r--r--src/eom-file-chooser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/eom-file-chooser.c b/src/eom-file-chooser.c
index 009b45b..342c600 100644
--- a/src/eom-file-chooser.c
+++ b/src/eom-file-chooser.c
@@ -379,9 +379,7 @@ update_preview_cb (GtkFileChooser *file_chooser, gpointer data)
set_preview_pixbuf (EOM_FILE_CHOOSER (file_chooser), pixbuf,
g_file_info_get_size (file_info));
- if (pixbuf != NULL) {
- g_object_unref (pixbuf);
- }
+ g_object_unref (pixbuf);
}
}