[vte] [ring] Don't free items when inserting, reuse them



commit 684e66aeb8597e9f54fda6361ef9e337fdb44eda
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Aug 25 23:26:22 2009 -0400

    [ring] Don't free items when inserting, reuse them

 src/ring.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/ring.c b/src/ring.c
index 20a7fae..3faf9bb 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -177,8 +177,6 @@ _vte_ring_insert(VteRing * ring, long position)
 
 	/* Initial insertion, or append. */
 	if (position == ring->length + ring->delta) {
-		/* If there was something there before, free it. */
-		_vte_row_data_fini (&ring->array[position % ring->max], TRUE);
 		/* Set the new item, and if the buffer wasn't "full", increase
 		 * our idea of how big it is, otherwise increase the delta so
 		 * that this becomes the "last" item and the previous item



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