--- a/pluma/pluma-window.c +++ b/pluma/pluma-window.c @@ -266,7 +266,7 @@ pluma_window_window_state_event (GtkWidget *widget, window->priv->window_state = event->new_window_state; - return FALSE; + return GTK_WIDGET_CLASS (pluma_window_parent_class)->window_state_event (widget, event); } static gboolean --- a/pluma/pluma-document.c +++ b/pluma/pluma-document.c @@ -655,6 +655,8 @@ file_with_bom (GFile *file) gchar bom[3]; gchar *file_path; + bom[0] = bom[1] = bom[2] = 0; + file_path = g_file_get_path (file); testfile = fopen (file_path, "r");