Unref layer mask rather than layer when adding the mask. Fixes bug #92693.

2002-09-07  Dave Neary  <bolsh@gimp.org>

        * app/xcf/xcf-load.c: Unref layer mask rather than layer
        when adding the mask. Fixes bug #92693.
This commit is contained in:
Dave Neary 2002-09-07 09:40:53 +00:00 committed by David Neary
parent e17baf71d6
commit 70467e55c2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-09-07 Dave Neary <bolsh@gimp.org>
* app/xcf/xcf-load.c: Unref layer mask rather than layer
when adding the mask. Fixes bug #92693.
2002-09-06 Hans Breuer <hans@breuer.org>
* */*/makefile.msc : updated

View File

@ -903,7 +903,7 @@ xcf_load_layer (XcfInfo *info,
GIMP_DRAWABLE (layer_mask)->offset_y = GIMP_DRAWABLE (layer)->offset_y;
gimp_layer_add_mask (layer, layer_mask, FALSE);
g_object_unref (G_OBJECT (layer));
g_object_unref (G_OBJECT (layer_mask));
layer->mask->apply_mask = apply_mask;
layer->mask->edit_mask = edit_mask;