X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fev-document-factory.c;h=d31506db8b4fb64056c3be9b7184edcbe9bf447c;hb=1ad8b6b9bd67fa4d6ea23885ab2bef25f12316c6;hp=c02801fbc1aff16c2eec45b74afd082a61309711;hpb=2c3366a76e64a48a45379cfbd59d3af999cf9ac4;p=evince.git diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index c02801fb..d31506db 100644 --- a/backend/ev-document-factory.c +++ b/backend/ev-document-factory.c @@ -283,12 +283,10 @@ ev_document_factory_get_document (const char *uri, GError **error) document = get_document_from_uri (uri, FALSE, error); - if (*error != NULL) { - return NULL; + if (*error == NULL) { + ev_document_load (document, uri, error); } - - ev_document_load (document, uri, error); - + if (*error) { g_error_free (*error); *error = NULL;