Skip to content

clutter/actor: Fix GValue leak when overwriting transition values

I found a few instances of the following entries in one of my valgrind logs. I'm not sure what I did to trigger them though.

==633203== 64 bytes in 4 blocks are definitely lost in loss record 15,068 of 27,549
==633203==    at 0x483980B: malloc (vg_replace_malloc.c:309)
==633203==    by 0x4D252E0: g_malloc (gmem.c:102)
==633203==    by 0x4D3D424: g_slice_alloc (gslice.c:1024)
==633203==    by 0x4D3DAC2: g_slice_copy (gslice.c:1075)
==633203==    by 0x4C7FC57: boxed_proxy_collect_value (gboxed.c:245)
==633203==    by 0x56CA659: _clutter_actor_create_transition (clutter-actor.c:19302)
==633203==    by 0x56CBB99: clutter_actor_allocate (clutter-actor.c:10402)
==633203==    by 0x66BFAA7: ffi_call_unix64 (in /usr/lib64/libffi.so.6.0.2)
==633203==    by 0x66BF2A3: ffi_call (in /usr/lib64/libffi.so.6.0.2)
==633203==    by 0x55A1290: gjs_invoke_c_function(JSContext*, Function*, JS::Handle<JSObject*>, JS::HandleValueArray const&, mozilla::Maybe<JS::MutableHandle<JS::Value> >, _GIArgument*) (function.cpp:1116)
==633203==    by 0x55A3010: function_call(JSContext*, unsigned int, JS::Value*) (function.cpp:1448)
==633203==    by 0x6E4A4DB: ??? (in /usr/lib64/libmozjs-68.so.0.0.0)

Merge request reports