More refcounting stuff.

--sg
This commit is contained in:
scott 1998-02-14 00:44:47 +00:00
parent ac30648449
commit 411e605ebd
13 changed files with 21 additions and 19 deletions

View File

@ -1079,8 +1079,9 @@ bezier_convert (BezierSelect *bezier_sel,
}
/* create a new mask */
bezier_sel->mask = channel_new_mask (gdisp->gimage->ID, gdisp->gimage->width,
gdisp->gimage->height);
bezier_sel->mask = channel_ref (channel_new_mask (gdisp->gimage->ID,
gdisp->gimage->width,
gdisp->gimage->height));
/* allocate room for the scanlines */
bezier_sel->scanlines = g_malloc (sizeof (GSList *) * height);

View File

@ -212,7 +212,7 @@ channel_get_ID (int ID)
void
channel_delete (Channel *channel)
{
gtk_object_destroy (GTK_OBJECT (channel));
gtk_object_unref (GTK_OBJECT (channel));
}
static void

View File

@ -212,7 +212,7 @@ channel_get_ID (int ID)
void
channel_delete (Channel *channel)
{
gtk_object_destroy (GTK_OBJECT (channel));
gtk_object_unref (GTK_OBJECT (channel));
}
static void

View File

@ -212,7 +212,7 @@ channel_get_ID (int ID)
void
channel_delete (Channel *channel)
{
gtk_object_destroy (GTK_OBJECT (channel));
gtk_object_unref (GTK_OBJECT (channel));
}
static void

View File

@ -504,7 +504,7 @@ layer_get_ID (ID)
void
layer_delete (Layer * layer)
{
gtk_object_destroy (GTK_OBJECT (layer));
gtk_object_unref (GTK_OBJECT (layer));
}
static void

View File

@ -463,7 +463,7 @@ fuzzy_select_calculate (Tool *tool, void *gdisp_ptr, int *nsegs)
if (fuzzy_mask)
channel_delete (fuzzy_mask);
fuzzy_mask = new;
fuzzy_mask = channel_ref (new);
/* calculate and allocate a new XSegment array which represents the boundary
* of the color-contiguous region
@ -716,7 +716,7 @@ fuzzy_select_invoker (Argument *args)
sample_merged = (int_value) ? TRUE : FALSE;
}
/* call the ellipse_select procedure */
/* call the fuzzy_select procedure */
if (success)
{
Channel *new;

View File

@ -212,7 +212,7 @@ channel_get_ID (int ID)
void
channel_delete (Channel *channel)
{
gtk_object_destroy (GTK_OBJECT (channel));
gtk_object_unref (GTK_OBJECT (channel));
}
static void

View File

@ -504,7 +504,7 @@ layer_get_ID (ID)
void
layer_delete (Layer * layer)
{
gtk_object_destroy (GTK_OBJECT (layer));
gtk_object_unref (GTK_OBJECT (layer));
}
static void

View File

@ -504,7 +504,7 @@ layer_get_ID (ID)
void
layer_delete (Layer * layer)
{
gtk_object_destroy (GTK_OBJECT (layer));
gtk_object_unref (GTK_OBJECT (layer));
}
static void

View File

@ -1079,8 +1079,9 @@ bezier_convert (BezierSelect *bezier_sel,
}
/* create a new mask */
bezier_sel->mask = channel_new_mask (gdisp->gimage->ID, gdisp->gimage->width,
gdisp->gimage->height);
bezier_sel->mask = channel_ref (channel_new_mask (gdisp->gimage->ID,
gdisp->gimage->width,
gdisp->gimage->height));
/* allocate room for the scanlines */
bezier_sel->scanlines = g_malloc (sizeof (GSList *) * height);

View File

@ -463,7 +463,7 @@ fuzzy_select_calculate (Tool *tool, void *gdisp_ptr, int *nsegs)
if (fuzzy_mask)
channel_delete (fuzzy_mask);
fuzzy_mask = new;
fuzzy_mask = channel_ref (new);
/* calculate and allocate a new XSegment array which represents the boundary
* of the color-contiguous region
@ -716,7 +716,7 @@ fuzzy_select_invoker (Argument *args)
sample_merged = (int_value) ? TRUE : FALSE;
}
/* call the ellipse_select procedure */
/* call the fuzzy_select procedure */
if (success)
{
Channel *new;

View File

@ -463,7 +463,7 @@ fuzzy_select_calculate (Tool *tool, void *gdisp_ptr, int *nsegs)
if (fuzzy_mask)
channel_delete (fuzzy_mask);
fuzzy_mask = new;
fuzzy_mask = channel_ref (new);
/* calculate and allocate a new XSegment array which represents the boundary
* of the color-contiguous region
@ -716,7 +716,7 @@ fuzzy_select_invoker (Argument *args)
sample_merged = (int_value) ? TRUE : FALSE;
}
/* call the ellipse_select procedure */
/* call the fuzzy_select procedure */
if (success)
{
Channel *new;

View File

@ -463,7 +463,7 @@ fuzzy_select_calculate (Tool *tool, void *gdisp_ptr, int *nsegs)
if (fuzzy_mask)
channel_delete (fuzzy_mask);
fuzzy_mask = new;
fuzzy_mask = channel_ref (new);
/* calculate and allocate a new XSegment array which represents the boundary
* of the color-contiguous region
@ -716,7 +716,7 @@ fuzzy_select_invoker (Argument *args)
sample_merged = (int_value) ? TRUE : FALSE;
}
/* call the ellipse_select procedure */
/* call the fuzzy_select procedure */
if (success)
{
Channel *new;