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

Unified · Split

libavfilter/buffer.c+1−1
@@ -38,7 +38,7 @@ void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr) · 37 unmodified lines
38{38{
39 if (ptr->extended_data != ptr->data)39 if (ptr->extended_data != ptr->data)
40 av_freep(&ptr->extended_data);40 av_freep(&ptr->extended_data);
41 av_free(ptr->data[0]);41 av_freep(&ptr->data[0]);
42 av_free(ptr);42 av_free(ptr);
43}43}
44 44

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