From 3175f0355269ee558d8ca1f21b429a4beb04033b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 30 Jun 2014 14:14:34 +0200 Subject: [PATCH] libsmartcols: add note about deallocations Signed-off-by: Karel Zak --- libsmartcols/src/column.c | 3 ++- libsmartcols/src/line.c | 3 ++- libsmartcols/src/table.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libsmartcols/src/column.c b/libsmartcols/src/column.c index 7ba284c6e0..b3dd06ef87 100644 --- a/libsmartcols/src/column.c +++ b/libsmartcols/src/column.c @@ -60,7 +60,8 @@ void scols_ref_column(struct libscols_column *cl) * scols_unref_column: * @cl: a pointer to a struct libscols_column instance * - * Decreases the refcount of @cl. + * Decreases the refcount of @cl. When the count falls to zero, the instance + * is automatically deallocated. */ void scols_unref_column(struct libscols_column *cl) { diff --git a/libsmartcols/src/line.c b/libsmartcols/src/line.c index 0ed765dcdf..ab2f191b39 100644 --- a/libsmartcols/src/line.c +++ b/libsmartcols/src/line.c @@ -66,7 +66,8 @@ void scols_ref_line(struct libscols_line *ln) * scols_unref_line: * @ln: a pointer to a struct libscols_line instance * - * Decreases the refcount of @ln. + * Decreases the refcount of @ln. When the count falls to zero, the instance + * is automatically deallocated. */ void scols_unref_line(struct libscols_line *ln) { diff --git a/libsmartcols/src/table.c b/libsmartcols/src/table.c index 53590038aa..8c404f8581 100644 --- a/libsmartcols/src/table.c +++ b/libsmartcols/src/table.c @@ -77,7 +77,8 @@ void scols_ref_table(struct libscols_table *tb) * scols_unref_table: * @tb: a pointer to a struct libscols_table instance * - * Decreases the refcount of @tb. + * Decreases the refcount of @tb. When the count falls to zero, the instance + * is automatically deallocated. */ void scols_unref_table(struct libscols_table *tb) { -- 2.47.3