summaryrefslogtreecommitdiff
path: root/src/glibext/gwidthtracker.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-06-18 21:45:14 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-07-08 18:34:43 (GMT)
commit6aa139281feca7cbe806efffe4ee787891d87d00 (patch)
treee1871fd21a210ced8b0ad5da67ffdd5c59790e77 /src/glibext/gwidthtracker.c
parent24f4b449d22c918d8f0e6c8fc059e0fa1fa485ff (diff)
Improved reference tracking for widget disposing.
Diffstat (limited to 'src/glibext/gwidthtracker.c')
-rw-r--r--src/glibext/gwidthtracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glibext/gwidthtracker.c b/src/glibext/gwidthtracker.c
index 50b99eb..3d39316 100644
--- a/src/glibext/gwidthtracker.c
+++ b/src/glibext/gwidthtracker.c
@@ -239,7 +239,7 @@ static void g_width_update_init(GWidthUpdate *update)
static void g_width_update_dispose(GWidthUpdate *update)
{
- g_object_unref(G_OBJECT(update->tracker));
+ g_clear_object(&update->tracker);
G_OBJECT_CLASS(g_width_update_parent_class)->dispose(G_OBJECT(update));