diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-14 21:18:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-06-15 12:45:28 +0100 |
commit | e567ede54e85200f9e412dfa94a0f7b05c27d32f (patch) | |
tree | 089fb4edebbac8cc66b74e3cca426c771b95559b /libreofficekit | |
parent | 03e750a73273239e238d8dd8f6f01aa59a8f6cca (diff) |
Related: rhbz#1444437 check if m_nTimeoutId is valid
Change-Id: I80d850d23ab0e95bb4b105efa5a1ae1e59933a95
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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); } }; |