search-view: don't try to access NULL data
This should be better debugged, as it may be a thread syncronization problem.
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
ddb93d8d72
commit
ff54f7eb67
@@ -642,8 +642,11 @@ gcal_search_view_component_removed (ECalDataModelSubscriber *subscriber,
|
|||||||
|
|
||||||
row_data = g_hash_table_lookup (priv->events, uuid);
|
row_data = g_hash_table_lookup (priv->events, uuid);
|
||||||
|
|
||||||
g_hash_table_remove (priv->row_to_event, row_data->row);
|
if (row_data)
|
||||||
g_hash_table_remove (priv->events, uuid);
|
{
|
||||||
|
g_hash_table_remove (priv->row_to_event, row_data->row);
|
||||||
|
g_hash_table_remove (priv->events, uuid);
|
||||||
|
}
|
||||||
g_free (uuid);
|
g_free (uuid);
|
||||||
|
|
||||||
/* show 'no results' */
|
/* show 'no results' */
|
||||||
|
|||||||
Reference in New Issue
Block a user