Commit 0bd22bc5 authored by Morten Welinder's avatar Morten Welinder

More leaks got plugged.

parent 995c3ce4
......@@ -1968,6 +1968,10 @@ BC_R(end)(XLChartHandler const *handle,
g_free (s->text);
s->text = NULL;
}
if (s->style != NULL) {
g_object_unref (s->style);
s->style = NULL;
}
break;
default :
......
2004-06-01 Morten Welinder <terra@gnome.org>
* dialog-cell-format.c (cb_rotate_canvas_realize): Unref the
layout. Unref the attribute list. Free the bitmap.
layout. Unref the attribute list. Free the bitmap. Unref the
context.
2004-05-24 Jody Goldberg <jody@gnome.org>
......
......@@ -667,9 +667,10 @@ cb_rotate_canvas_realize (GnomeCanvas *canvas, FormatState *state)
pango_ft2_font_map_set_resolution (font_map,
gnm_app_display_dpi_get (TRUE),
gnm_app_display_dpi_get (FALSE));
context = pango_ft2_font_map_create_context (font_map);
context = pango_ft2_font_map_create_context (font_map);
g_object_unref (font_map);
layout = pango_layout_new (context);
g_object_unref (context);
pango_layout_set_font_description (layout,
pango_context_get_font_description (gtk_widget_get_pango_context (GTK_WIDGET (canvas))));
pango_layout_set_text (layout, _("Text"), -1);
......@@ -696,7 +697,9 @@ cb_rotate_canvas_realize (GnomeCanvas *canvas, FormatState *state)
ft_bitmap.palette_mode = 0;
ft_bitmap.palette = NULL;
#if 0
pango_ft2_render_layout (&ft_bitmap, layout, 0, 0);
#endif
g_object_unref (layout);
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8,
......
......@@ -1391,10 +1391,6 @@ gnm_float pgamma(gnm_float x, gnm_float alph, gnm_float scale, gboolean lower_ta
xbig = 1.0e+8,
xlarge = 1.0e+37,
#ifndef IEEE_754
elimit = M_LN2gnum*(GNUM_MIN_EXP),/* will set expgnum(E) = 0 for E < elimit ! */
/* was elimit = -88.0e0; */
#endif
/* normal approx. for alph > alphlimit */
alphlimit = 1e5;/* was 1000. till R.1.8.x */
......@@ -1505,20 +1501,11 @@ gnm_float pgamma(gnm_float x, gnm_float alph, gnm_float scale, gboolean lower_ta
arg += loggnum(sum);
#ifdef DEBUG_p
REprintf("--> arg=%12" GNUM_FORMAT_g " (elimit=%" GNUM_FORMAT_g ")\n", arg, elimit);
#endif
lower_tail = (lower_tail == pearson);
if (log_p && lower_tail)
return(arg);
/* else */
#ifndef IEEE_754
/* Underflow check :*/
if (arg < elimit)
return (lower_tail) ? 0. : (log_p ? 0. : 1.);
#endif
/* sum = expgnum(arg); and return if(lower_tail) sum else 1-sum : */
return (lower_tail) ? expgnum(arg)
: (log_p ? (arg > -M_LN2gnum ? loggnum(-expm1gnum(arg)) : log1pgnum(-expgnum(arg)))
......
2004-06-01 Morten Welinder <terra@gnome.org>
* widget-font-selector.c (size_selected): Plug leak.
(font_selected): Ditto.
2004-05-26 Jean Brefort <jean.brefort@ac-dijon.fr>
......
......@@ -173,6 +173,7 @@ font_selected (GtkTreeSelection *selection,
change = mstyle_new ();
mstyle_set_font_name (change, text);
g_free (text);
fs_modify_style (fs, change);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment