diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-01-03 23:44:20 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-01-03 23:44:20 (GMT) |
commit | 73308548c2be7f6480f3c898ceb6d01ae4e3f64c (patch) | |
tree | 437462351d83b1383ad16917021f111df8cdc7ba | |
parent | 539a8247acabfba21bbcb20ff14793f92ba34d4c (diff) |
Unreferenced all relative segments when a line is deleted.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/glibext/gbufferline.c | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +17-01-04 Cyrille Bagard <nocbos@gmail.com> + + * src/glibext/gbufferline.c: + Unreference all relative segments when a line is deleted. + 17-01-03 Cyrille Bagard <nocbos@gmail.com> * src/glibext/gbuffercache.c: 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); |