tdf#96250 LOK: guard against 0 pRenderingArguments

Change-Id: Ifa39777795ce966662c31c891ffc1b9b1a297b00
This commit is contained in:
Miklos Vajna 2015-12-16 20:04:01 +01:00
parent 70bfd5d747
commit 032e34d001

View File

@ -2453,7 +2453,8 @@ lok_doc_view_open_document (LOKDocView* pDocView,
pLOEvent->m_pPath = pPath; pLOEvent->m_pPath = pPath;
priv->m_aDocPath = pPath; priv->m_aDocPath = pPath;
priv->m_aRenderingArguments = pRenderingArguments; if (pRenderingArguments)
priv->m_aRenderingArguments = pRenderingArguments;
g_task_set_task_data(task, pLOEvent, LOEvent::destroy); g_task_set_task_data(task, pLOEvent, LOEvent::destroy);
g_thread_pool_push(priv->lokThreadPool, g_object_ref(task), &error); g_thread_pool_push(priv->lokThreadPool, g_object_ref(task), &error);