Commit 8eb4666f authored by Kjartan Maraas's avatar Kjartan Maraas Committed by Kjartan Maraas

Fix leaks Same Closes bug #308953.

2005-06-27  Kjartan Maraas  <kmaraas@gnome.org>

	* gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
	* gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
	Closes bug #308953.
parent d4c43a42
2005-06-27 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
* gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
Closes bug #308953.
2005-06-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
......
2005-06-27 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
* gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
Closes bug #308953.
2005-06-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
......
2005-06-27 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
* gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
Closes bug #308953.
2005-06-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
......
......@@ -190,7 +190,8 @@ gtk_hruler_draw_ticks (GtkRuler *ruler)
lower = ruler->lower / ruler->metric->pixels_per_unit;
if ((upper - lower) == 0)
return;
goto out;
increment = (gdouble) width / (upper - lower);
/* determine the scale
......@@ -267,6 +268,7 @@ gtk_hruler_draw_ticks (GtkRuler *ruler)
}
cairo_fill (cr);
out:
cairo_destroy (cr);
g_object_unref (layout);
......
......@@ -191,7 +191,8 @@ gtk_vruler_draw_ticks (GtkRuler *ruler)
lower = ruler->lower / ruler->metric->pixels_per_unit;
if ((upper - lower) == 0)
return;
goto out;
increment = (gdouble) width / (upper - lower);
/* determine the scale
......@@ -273,6 +274,7 @@ gtk_vruler_draw_ticks (GtkRuler *ruler)
}
cairo_fill (cr);
out:
cairo_destroy (cr);
g_object_unref (layout);
......
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