summaryrefslogtreecommitdiff
path: root/src/glibext/gbuffercache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext/gbuffercache.c')
-rw-r--r--src/glibext/gbuffercache.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/glibext/gbuffercache.c b/src/glibext/gbuffercache.c
index a627238..66ecf27 100644
--- a/src/glibext/gbuffercache.c
+++ b/src/glibext/gbuffercache.c
@@ -784,9 +784,15 @@ size_t g_buffer_cache_count_lines(const GBufferCache *cache)
* *
******************************************************************************/
-const GWidthTracker *g_buffer_cache_get_width_tracker(const GBufferCache *cache)
+GWidthTracker *g_buffer_cache_get_width_tracker(const GBufferCache *cache)
{
- return cache->tracker;
+ GWidthTracker *result; /* Instance à retourner * */
+
+ result = cache->tracker;
+
+ g_object_ref(G_OBJECT(result));
+
+ return result;
}