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




commit 09eb6b126381457f60e012635d0fe6c2cb95d789
Author: Hans Petter Jansson <hpj cl no>
Date:   Sat Aug 8 20:42:48 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]