Skip to content

Commit 2b5851b

Browse files
committed
cinnamon-tray-manager.c: Fix leak during redisplay.
on_plug_added() adds its own ref to the actor, in addition to the one added when it gets parented in the tray applet.
1 parent 3fa32cb commit 2b5851b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/cinnamon-tray-manager.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ cinnamon_tray_manager_child_redisplay (gpointer socket_pointer, gpointer child_p
402402

403403
if (child->actor && CLUTTER_IS_ACTOR(child->actor)) {
404404
clutter_actor_destroy(child->actor);
405+
g_clear_object (&child->actor);
405406
}
406407

407408
on_plug_added(socket_pointer, child->manager);

0 commit comments

Comments
 (0)