added some variable initializations.
segfaults appear less spurious now. -timj
This commit is contained in:
@ -1753,7 +1753,6 @@ calculate_edge_map (GImage *gimage,
|
|||||||
double prev, next;
|
double prev, next;
|
||||||
GimpDrawable *drawable;
|
GimpDrawable *drawable;
|
||||||
void *pr;
|
void *pr;
|
||||||
FILE *dump;
|
|
||||||
|
|
||||||
drawable = gimage_active_drawable (gimage);
|
drawable = gimage_active_drawable (gimage);
|
||||||
|
|
||||||
@ -2398,7 +2397,7 @@ make_curve_d (int *curve,
|
|||||||
/* Functions for Catmull-Rom area conversion */
|
/* Functions for Catmull-Rom area conversion */
|
||||||
/***********************************************/
|
/***********************************************/
|
||||||
|
|
||||||
static GSList ** CR_scanlines;
|
static GSList ** CR_scanlines = NULL;
|
||||||
static int start_convert;
|
static int start_convert;
|
||||||
static int width, height;
|
static int width, height;
|
||||||
static int lastx;
|
static int lastx;
|
||||||
@ -2514,6 +2513,7 @@ CR_convert (Iscissors *iscissors,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_slist_free (CR_scanlines[i]);
|
g_slist_free (CR_scanlines[i]);
|
||||||
|
CR_scanlines[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (antialias)
|
if (antialias)
|
||||||
|
@ -1753,7 +1753,6 @@ calculate_edge_map (GImage *gimage,
|
|||||||
double prev, next;
|
double prev, next;
|
||||||
GimpDrawable *drawable;
|
GimpDrawable *drawable;
|
||||||
void *pr;
|
void *pr;
|
||||||
FILE *dump;
|
|
||||||
|
|
||||||
drawable = gimage_active_drawable (gimage);
|
drawable = gimage_active_drawable (gimage);
|
||||||
|
|
||||||
@ -2398,7 +2397,7 @@ make_curve_d (int *curve,
|
|||||||
/* Functions for Catmull-Rom area conversion */
|
/* Functions for Catmull-Rom area conversion */
|
||||||
/***********************************************/
|
/***********************************************/
|
||||||
|
|
||||||
static GSList ** CR_scanlines;
|
static GSList ** CR_scanlines = NULL;
|
||||||
static int start_convert;
|
static int start_convert;
|
||||||
static int width, height;
|
static int width, height;
|
||||||
static int lastx;
|
static int lastx;
|
||||||
@ -2514,6 +2513,7 @@ CR_convert (Iscissors *iscissors,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_slist_free (CR_scanlines[i]);
|
g_slist_free (CR_scanlines[i]);
|
||||||
|
CR_scanlines[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (antialias)
|
if (antialias)
|
||||||
|
@ -1753,7 +1753,6 @@ calculate_edge_map (GImage *gimage,
|
|||||||
double prev, next;
|
double prev, next;
|
||||||
GimpDrawable *drawable;
|
GimpDrawable *drawable;
|
||||||
void *pr;
|
void *pr;
|
||||||
FILE *dump;
|
|
||||||
|
|
||||||
drawable = gimage_active_drawable (gimage);
|
drawable = gimage_active_drawable (gimage);
|
||||||
|
|
||||||
@ -2398,7 +2397,7 @@ make_curve_d (int *curve,
|
|||||||
/* Functions for Catmull-Rom area conversion */
|
/* Functions for Catmull-Rom area conversion */
|
||||||
/***********************************************/
|
/***********************************************/
|
||||||
|
|
||||||
static GSList ** CR_scanlines;
|
static GSList ** CR_scanlines = NULL;
|
||||||
static int start_convert;
|
static int start_convert;
|
||||||
static int width, height;
|
static int width, height;
|
||||||
static int lastx;
|
static int lastx;
|
||||||
@ -2514,6 +2513,7 @@ CR_convert (Iscissors *iscissors,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_slist_free (CR_scanlines[i]);
|
g_slist_free (CR_scanlines[i]);
|
||||||
|
CR_scanlines[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (antialias)
|
if (antialias)
|
||||||
|
Reference in New Issue
Block a user