[gnome-panel] status-notifier: ignore pixmaps with invalid size
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] status-notifier: ignore pixmaps with invalid size
- Date: Sat, 5 Nov 2016 11:09:52 +0000 (UTC)
commit b8c8ebcd0e41112c1be1bb3ffb9bc99dfed7c452
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Nov 5 13:09:04 2016 +0200
status-notifier: ignore pixmaps with invalid size
applets/status-notifier/sn-item-v0.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/applets/status-notifier/sn-item-v0.c b/applets/status-notifier/sn-item-v0.c
index a727600..ca4f8bb 100644
--- a/applets/status-notifier/sn-item-v0.c
+++ b/applets/status-notifier/sn-item-v0.c
@@ -137,6 +137,12 @@ icon_pixmap_new (GVariant *variant)
GBytes *bytes;
gint rowstride;
+ if (width == 0 || height == 0)
+ {
+ g_variant_unref (value);
+ continue;
+ }
+
bytes = g_variant_get_data_as_bytes (value);
rowstride = g_bytes_get_size (bytes) / height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]