GPencil: Fix memory leak using stroke arrange OP
authorJulian Eisel <eiseljulian@gmail.com>
Sun, 18 Sep 2016 15:25:12 +0000 (17:25 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 22 Sep 2016 13:02:25 +0000 (15:02 +0200)
source/blender/editors/gpencil/gpencil_data.c

index 9560ab1..01d388b 100644 (file)
@@ -815,6 +815,8 @@ static int gp_stroke_arrange_exec(bContext *C, wmOperator *op)
                        BLI_assert(0);
                        break;
        }
+       BLI_freelistN(&selected);
+
        /* notifiers */
        WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL);