[vte/wip/sixels: 40/82] ring: Erase pruned images from priority map, too



commit c8980a89eaa7b70b26c2bc6c2482e6cc7fbf0289
Author: Hans Petter Jansson <hpj cl no>
Date:   Tue Jun 9 01:00:40 2020 +0200

    ring: Erase pruned images from priority map, too

 src/ring.cc | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/ring.cc b/src/ring.cc
index e711e683..3b97df51 100644
--- a/src/ring.cc
+++ b/src/ring.cc
@@ -1547,6 +1547,7 @@ Ring::append_image (cairo_surface_t *surface, gint pixelwidth, gint pixelheight,
 
                         /* We must advance the iterator before erasure */
                        m_image_map->erase (it++);
+                        m_image_priority_map->erase(current->get_priority());
                        delete current;
                         continue;
                }


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