Blame SOURCES/Fix-segmentation-fault-when-using-ibus-m17n-with-vi-telex-in-gedit-in-wayland.patch

94f71d
From 4d815754f9f32c54ec47f9e323940f6332a7cb5d Mon Sep 17 00:00:00 2001
94f71d
From: Mike FABIAN <mfabian@redhat.com>
94f71d
Date: Tue, 30 Apr 2019 10:32:13 +0200
94f71d
Subject: [PATCH] Fix segmentation fault when using ibus-m17n with vi-telex in
94f71d
 gedit in Gnome Wayland
94f71d
94f71d
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1704156
94f71d
---
94f71d
 src/m17n-core.c | 2 ++
94f71d
 1 file changed, 2 insertions(+)
94f71d
94f71d
diff --git a/src/m17n-core.c b/src/m17n-core.c
94f71d
index fe5aa77..642dfee 100644
94f71d
--- a/src/m17n-core.c
94f71d
+++ b/src/m17n-core.c
94f71d
@@ -930,6 +930,8 @@ m17n_object_unref (void *object)
94f71d
   M17NObjectRecord *record;
94f71d
   unsigned *count;
94f71d
 
94f71d
+  if (object == NULL)
94f71d
+      return -1;
94f71d
   if (! obj->ref_count_extended)
94f71d
     {
94f71d
       if (! --obj->ref_count)
94f71d
-- 
94f71d
2.20.1
94f71d