printeroptionwidget: Avoid a critical

The new_location can be NULL, as we clearly
knew earlier in the function. We've forgotten
about that by the time we unref it :(
This commit is contained in:
Matthias Clasen 2020-05-11 14:26:31 -04:00
parent 495b9caf63
commit 58fd969b2d

View File

@ -526,7 +526,7 @@ dialog_response_callback (GtkDialog *dialog,
g_free (uri);
}
g_object_unref (new_location);
g_clear_object (&new_location);
g_clear_object (&priv->last_location);
/* unblock the handler which was blocked in the filesave_choose_cb function */