Fix: Memory leak in Graph editor keyframe jump

Introduced with #108549
Simply forgot to free the AnimData list

Pull Request: https://projects.blender.org/blender/blender/pulls/111464
This commit is contained in:
Christoph Lendenfeld
2023-08-24 14:33:12 +02:00
committed by Christoph Lendenfeld
parent d8757236e0
commit 3f7eceea93

View File

@@ -2285,6 +2285,8 @@ static int keyframe_jump_exec(bContext *C, wmOperator *op)
BKE_scene_frame_set(scene, closest_frame);
ANIM_animdata_freelist(&anim_data);
/* Set notifier that things have changed. */
WM_event_add_notifier(C, NC_SCENE | ND_FRAME, ac.scene);
return OPERATOR_FINISHED;