summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-01-03 23:44:20 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-01-03 23:44:20 (GMT)
commit73308548c2be7f6480f3c898ceb6d01ae4e3f64c (patch)
tree437462351d83b1383ad16917021f111df8cdc7ba /src/glibext
parent539a8247acabfba21bbcb20ff14793f92ba34d4c (diff)
Unreferenced all relative segments when a line is deleted.
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/gbufferline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glibext/gbufferline.c b/src/glibext/gbufferline.c
index 3b89a0d..5a7e53d 100644
--- a/src/glibext/gbufferline.c
+++ b/src/glibext/gbufferline.c
@@ -235,8 +235,10 @@ static void g_buffer_line_dispose(GBufferLine *line)
static void g_buffer_line_finalize(GBufferLine *line)
{
- /* TODO : segments des colonnes... */
+ BufferLineColumn i; /* Boucle de parcours */
+ for (i = 0; i < BLC_COUNT; i++)
+ reset_line_column(&line->columns[i]);
if (line->origins != NULL)
free(line->origins);