Commit 21ad9d33 authored by Michael Natterer's avatar Michael Natterer 😴

app: don't ref the layer mask twice when keeping it around while loading

Don't g_object_ref() *and* g_object_ref_sink() it when temporatily
attaching it as object data to its layer.
parent 8512e67c
......@@ -1149,9 +1149,8 @@ xcf_load_layer (XcfInfo *info,
* attach it so it can be added when all layers are loaded
g_object_set_data_full (G_OBJECT (layer), "gimp-layer-mask",
g_object_ref (layer_mask),
g_object_ref_sink (layer_mask),
(GDestroyNotify) g_object_unref);
g_object_ref_sink (layer_mask);
/* attach the floating selection... */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment