Cleanup: remove useless call to `BKE_screen_free()` in screen deletion.
authorBastien Montagne <montagne29@wanadoo.fr>
Thu, 15 Jun 2017 11:00:11 +0000 (13:00 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Thu, 15 Jun 2017 11:00:11 +0000 (13:00 +0200)
`BKE_libblock_free()` will call it itself.

source/blender/editors/screen/screen_edit.c

index acc396e42fd460467a5dc192cb8121620ddb5494..18f02aff482aa30969cc684d8bb66d1bce5c6506 100644 (file)
@@ -1926,7 +1926,6 @@ ScrArea *ED_screen_state_toggle(bContext *C, wmWindow *win, ScrArea *sa, const s
 
                ED_screen_set(C, sc);
 
-               BKE_screen_free(oldscreen);
                BKE_libblock_free(CTX_data_main(C), oldscreen);
 
                /* After we've restored back to SCREENNORMAL, we have to wait with