gtk2/gtk-2.15.1-scale-marks-crasher.patch

15 lines
418 B
Diff
Raw Normal View History

Index: gtk/gtkrange.c
===================================================================
--- gtk/gtkrange.c (revision 22222)
+++ gtk/gtkrange.c (working copy)
@@ -1225,7 +1225,9 @@
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;
}