[vte] Fix bug introduced in ba1f44d6119cc39602d8a660f4e5a9f56a6f19da



commit bf5977d230dd95fcb86d3cbb8ce492f39ff71ae3
Author: Behdad Esfahbod <behdad behdad org>
Date:   Fri Aug 21 00:20:44 2009 -0400

    Fix bug introduced in ba1f44d6119cc39602d8a660f4e5a9f56a6f19da

 src/ring.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ring.c b/src/ring.c
index 22263cd..2efa2b2 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -257,7 +257,8 @@ _vte_ring_remove(VteRing * ring, long position, gboolean free_element)
 
 	i = position % ring->max;
 	/* Remove the data at this position. */
-	_vte_free_row_data (ring->array[position % ring->max]);
+	if (free_element)
+		_vte_free_row_data (ring->array[position % ring->max]);
 	ring->array[position % ring->max] = NULL;
 
 	/* Bubble the rest of the buffer up one notch.  This is also less



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]