[evince/wip/hadess/fix-missing-pixbuf-loader: 5/5] comics: Fix warning if page cannot be rendered



commit 956111e8e2f463422ea21b4fa90974fab47755cd
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Aug 2 16:16:05 2019 +0200

    comics: Fix warning if page cannot be rendered
    
    If the system is badly configured and there's no pixbuf loader plugin
    available (and the system otherwise advertises it does have one
    available) then don't throw a warning, there will be more useful ones
    later.

 backend/comics/comics-document.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c
index 6583ade8..0ed372e1 100644
--- a/backend/comics/comics-document.c
+++ b/backend/comics/comics-document.c
@@ -558,7 +558,7 @@ comics_document_render (EvDocument      *document,
 
        pixbuf = comics_document_render_pixbuf (document, rc);
        surface = ev_document_misc_surface_from_pixbuf (pixbuf);
-       g_object_unref (pixbuf);
+       g_clear_object (&pixbuf);
 
        return surface;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]