History

avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter()

Michael Niedermayer committed 13 years ago

Commit 175e6891 parent ec8e68c1 file · +1 −0Browse files

Unified · Split

libavfilter/graphparser.c+1−0
@@ -133,6 +133,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind · 132 unmodified lines
133 av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);133 av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
134 av_log(log_ctx, AV_LOG_ERROR, "\n");134 av_log(log_ctx, AV_LOG_ERROR, "\n");
135 avfilter_free(*filt_ctx);135 avfilter_free(*filt_ctx);
136 *filt_ctx = NULL;
136 }137 }
137 138
138 av_free(tmp_args);139 av_free(tmp_args);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t