[vte] [ring] Don't free items when inserting, reuse them
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] [ring] Don't free items when inserting, reuse them
- Date: Thu, 27 Aug 2009 17:44:29 +0000 (UTC)
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]