== Sequencer ==

Silently destroyed a null check in free_sequence in last commit,
getting old... :)
This commit is contained in:
2008-02-03 19:10:19 +00:00
parent a9518afc67
commit 54c1535606

View File

@@ -114,7 +114,9 @@ void free_strip(Strip *strip)
return;
}
MEM_freeN(strip->stripdata);
if (strip->stripdata) {
MEM_freeN(strip->stripdata);
}
if (strip->proxy) {
MEM_freeN(strip->proxy);
@@ -1021,6 +1023,10 @@ static int seq_proxy_get_fname(Sequence * seq, int cfra, char * name)
int frameno;
char dir[FILE_MAXDIR];
if (!seq->strip->proxy) {
return FALSE;
}
if (seq->flag & SEQ_USE_PROXY_CUSTOM_DIR) {
strcpy(dir, seq->strip->proxy->dir);
} else {
@@ -1056,11 +1062,6 @@ static int seq_proxy_get_fname(Sequence * seq, int cfra, char * name)
G.scene->r.size);
}
if (seq->strip->proxy == 0) {
return FALSE;
}
BLI_convertstringcode(name, G.sce, frameno);
strcat(name, ".jpg");