diff options
Diffstat (limited to 'app/resource_bundle_linux.cc')
-rw-r--r-- | app/resource_bundle_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/resource_bundle_linux.cc b/app/resource_bundle_linux.cc index 95d5ceb..fb78e02 100644 --- a/app/resource_bundle_linux.cc +++ b/app/resource_bundle_linux.cc @@ -27,7 +27,7 @@ namespace { // memory. GdkPixbuf* LoadPixbuf(RefCountedStaticMemory* data, bool rtl_enabled) { ScopedGObject<GdkPixbufLoader>::Type loader(gdk_pixbuf_loader_new()); - bool ok = gdk_pixbuf_loader_write(loader.get(), + bool ok = data && gdk_pixbuf_loader_write(loader.get(), reinterpret_cast<const guint8*>(data->front()), data->size(), NULL); if (!ok) return NULL; |