Fix reference counting issue of the LayerSettings inside the
GdsOutputRenderer class. The LayerSettings element is now disposed of properly.
This commit is contained in:
parent
1b62427770
commit
8a3721dc53
@ -246,9 +246,10 @@ LayerSettings *gds_output_renderer_get_and_ref_layer_settings(GdsOutputRenderer
|
||||
/* Acquire settings lock */
|
||||
g_mutex_lock(&priv->settings_lock);
|
||||
|
||||
/* This function seems to already reference the LayerSettings object */
|
||||
g_object_get(renderer, "layer-settings", &ret, NULL);
|
||||
/* Reference it, so it is not cleared by another thread overwriting the property */
|
||||
g_object_ref(ret);
|
||||
//g_object_ref(ret);
|
||||
|
||||
/* It is now safe to clear the lock */
|
||||
g_mutex_unlock(&priv->settings_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user