monitor-sensor: Clear GVariantDict after usage
Fix the following leak: 4,436 (792 direct, 3,644 indirect) bytes in 9 blocks are definitely lost in loss record 1,103 of 1,104 at 0x4C2EBAB: malloc (vg_replace_malloc.c:299) by 0x568F435: g_malloc (in /usr/lib64/libglib-2.0.so.0.5600.3) by 0x56A7056: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.5600.3) by 0x56779E1: g_hash_table_new_full (in /usr/lib64/libglib-2.0.so.0.5600.3) by 0x56C56CC: g_variant_dict_init (in /usr/lib64/libglib-2.0.so.0.5600.3) by 0x400DDF: properties_changed (monitor-sensor.c:25)
This commit is contained in:
@@ -67,6 +67,8 @@ properties_changed (GDBusProxy *proxy,
|
||||
g_print (" Compass heading changed: %lf\n", g_variant_get_double (v));
|
||||
g_variant_unref (v);
|
||||
}
|
||||
|
||||
g_variant_dict_clear (&dict);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user