Cleanup: use "free_data" suffix when the argument isn't freed

Avoid API misuse that caused leaks in T90791 &
2788b0261c.
This commit is contained in:
2021-08-20 16:35:35 +10:00
parent e05db0c26b
commit cea24b4b4a
12 changed files with 14 additions and 14 deletions

View File

@@ -230,7 +230,7 @@ bScreen *screen_add(Main *bmain, const char *name, const rcti *rect)
void screen_data_copy(bScreen *to, bScreen *from)
{
/* free contents of 'to', is from blenkernel screen.c */
BKE_screen_free(to);
BKE_screen_free_data(to);
to->flag = from->flag;