Skip to content

Commit

Permalink
free pointer interrupt data
Browse files Browse the repository at this point in the history
  • Loading branch information
Phuocpr1998 committed Jul 8, 2020
1 parent 99789d6 commit 6d051e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avformat/avformat.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ package avformat
//}
//
//static void free_pointer(void *ptr) {
// av_freep(ptr);
// av_freep(&ptr);
//}
//
//static AVIOInterruptData* createInterruptData() {
Expand Down Expand Up @@ -1060,7 +1060,7 @@ func (interruptData *IOInterruptData) SetLastTimestamp(lastTimestamp int) {

func (interruptData *IOInterruptData) Free() {
cAVIOInterruptData := unsafe.Pointer(interruptData.CAVIOInterruptData)
C.av_free(cAVIOInterruptData)
C.free_pointer(cAVIOInterruptData)
}

func NewIOInterruptDataFromC() *IOInterruptData {
Expand Down

0 comments on commit 6d051e9

Please sign in to comment.