[Libreoffice-commits] core.git: libreofficekit/source

Caolán McNamara caolanm at redhat.com
Thu Jun 15 11:47:03 UTC 2017


 libreofficekit/source/gtk/lokdocview.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e567ede54e85200f9e412dfa94a0f7b05c27d32f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jun 14 21:18:22 2017 +0100

    Related: rhbz#1444437 check if m_nTimeoutId is valid
    
    Change-Id: I80d850d23ab0e95bb4b105efa5a1ae1e59933a95

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);
     }
 };
 


More information about the Libreoffice-commits mailing list