Bug 569240 - Crasher when using markers

2009-01-26  Bastien Nocera  <hadess@hadess.net>

	Bug 569240 - Crasher when using markers

	* gtk/gtkrange.c (gtk_range_destroy): Avoid crashes when destroying
	a GtkRange with markers


svn path=/trunk/; revision=22224
This commit is contained in:
Bastien Nocera 2009-01-26 20:47:00 +00:00 committed by Bastien Nocera
parent 14f26357e1
commit b7d09a2750
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2009-01-26 Bastien Nocera <hadess@hadess.net>
Bug 569240 - Crasher when using markers
* gtk/gtkrange.c (gtk_range_destroy): Avoid crashes when destroying
a GtkRange with markers
2009-01-26 Richard Hult <richard@imendio.com>
Bug 566628 gdk_display_close always asserts on win32 and quartz

View File

@ -1225,7 +1225,9 @@ gtk_range_destroy (GtkObject *object)
if (range->layout->n_marks)
{
g_free (range->layout->marks);
range->layout->marks = NULL;
g_free (range->layout->mark_pos);
range->layout->mark_pos = NULL;
range->layout->n_marks = 0;
}