6f45d15a9c
- Add gnome-documents-check-ntimeoutid.patch: fix intermittent crash opening files from gnome-documents (bsc#1047714). OBS-URL: https://build.opensuse.org/request/show/514831 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=521
28 lines
853 B
Diff
28 lines
853 B
Diff
From e567ede54e85200f9e412dfa94a0f7b05c27d32f Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
|
|
Date: Wed, 14 Jun 2017 21:18:22 +0100
|
|
Subject: [PATCH] Related: rhbz#1444437 check if m_nTimeoutId is valid
|
|
|
|
Change-Id: I80d850d23ab0e95bb4b105efa5a1ae1e59933a95
|
|
---
|
|
libreofficekit/source/gtk/lokdocview.cxx | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
|
|
index a59d72bcc374..ceda8160c9dd 100644
|
|
--- a/libreofficekit/source/gtk/lokdocview.cxx
|
|
+++ b/libreofficekit/source/gtk/lokdocview.cxx
|
|
@@ -246,7 +246,8 @@ struct LOKDocViewPrivateImpl
|
|
|
|
~LOKDocViewPrivateImpl()
|
|
{
|
|
- g_source_remove(m_nTimeoutId);
|
|
+ if (m_nTimeoutId)
|
|
+ g_source_remove(m_nTimeoutId);
|
|
}
|
|
};
|
|
|
|
--
|
|
2.12.3
|
|
|