fix for memory leak selecting dope sheet summary with mask/grease-pencil data.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 4 Feb 2013 13:50:09 +0000 (13:50 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 4 Feb 2013 13:50:09 +0000 (13:50 +0000)
source/blender/editors/space_action/action_select.c

index 5eeb62a9e1d098f88d39591cc28086f879c4ee6d..964a6a20c37fb2cac29b586c4f8ccc7e95c418dd 100644 (file)
@@ -967,6 +967,7 @@ static void actkeys_mselect_single(bAnimContext *ac, bAnimListElem *ale, short s
                                else if (ale->type == ANIMTYPE_MASKLAYER)
                                        ED_mask_select_frame(ale->data, selx, select_mode);
                        }
+                       BLI_freelistN(&anim_data);
                }
                else {
                        ANIM_animchannel_keyframes_loop(&ked, ac->ads, ale, ok_cb, select_cb, NULL);