Cleanup: remove unused Image space curves

Caused leaks reading old files, was read/written but not freed,
remove since its unused.
This commit is contained in:
Campbell Barton 2016-06-22 09:50:53 +10:00
parent e0f314d750
commit 435fa9a015
3 changed files with 1 additions and 11 deletions

View File

@ -7038,11 +7038,7 @@ static bool direct_link_screen(FileData *fd, bScreen *sc)
}
else if (sl->spacetype == SPACE_IMAGE) {
SpaceImage *sima = (SpaceImage *)sl;
sima->cumap = newdataadr(fd, sima->cumap);
if (sima->cumap)
direct_link_curvemapping(fd, sima->cumap);
sima->iuser.scene = NULL;
sima->iuser.ok = 1;
sima->scopes.waveform_1 = NULL;

View File

@ -2808,11 +2808,7 @@ static void write_screens(WriteData *wd, ListBase *scrbase)
write_soops(wd, so, &tmp_mem_list);
}
else if (sl->spacetype==SPACE_IMAGE) {
SpaceImage *sima= (SpaceImage *)sl;
writestruct(wd, DATA, "SpaceImage", 1, sl);
if (sima->cumap)
write_curvemapping(wd, sima->cumap);
}
else if (sl->spacetype==SPACE_TEXT) {
writestruct(wd, DATA, "SpaceText", 1, sl);

View File

@ -875,8 +875,6 @@ typedef struct SpaceImage {
struct Image *image;
struct ImageUser iuser;
struct CurveMapping *cumap DNA_DEPRECATED; /* was switched to scene's color management settings */
struct Scopes scopes; /* histogram waveform and vectorscope */
struct Histogram sample_line_hist; /* sample line histogram */