summaryrefslogtreecommitdiff
path: root/src/glibext/linesegment.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-08 11:06:17 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-08 11:06:17 (GMT)
commit3ad8e821ec6a6e8408a9fc737b385aa863c67123 (patch)
tree078e95ac23aabe0762d9a48746f363bf7bd91600 /src/glibext/linesegment.h
parentf36b525987442d46c920f76dced29356663ae85b (diff)
Fixed one UAF when dealing with line text segments.
Diffstat (limited to 'src/glibext/linesegment.h')
-rw-r--r--src/glibext/linesegment.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glibext/linesegment.h b/src/glibext/linesegment.h
index a0b8e91..c6deb38 100644
--- a/src/glibext/linesegment.h
+++ b/src/glibext/linesegment.h
@@ -114,6 +114,9 @@ typedef enum _RenderingTagType
/* Crée un nouveau fragment de texte avec des propriétés. */
line_segment *get_new_line_segment(RenderingTagType, const char *, size_t);
+/* Augmente le compteur de références d'un fragment de texte. */
+void ref_line_segment(line_segment *);
+
/* Retire une utilisation à un fragment de texte. */
void release_line_segment(line_segment *);