History

avfilter/buffer: use av_freep() to avoid leaving stale pointers in memory

Michael Niedermayer committed 11 years ago

Commit da0dadb1 parent 59ca6e21 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/buffer.c+1−1
@@ -38,7 +38,7 @@ void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr) · 37 unmodified lines
3838 {
3939 if (ptr->extended_data != ptr->data)
4040 av_freep(&ptr->extended_data);
41− av_free(ptr->data[0]);
41+ av_freep(&ptr->data[0]);
4242 av_free(ptr);
4343 }
4444

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