Fixed malloc() when it must be free() in examples.
This commit is contained in:
parent
b0f83b8462
commit
aa520435ad
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ int main()
|
|||
}
|
||||
|
||||
// Release the frame buffer.
|
||||
malloc(buffer);
|
||||
free(buffer);
|
||||
|
||||
// Stop the stream.
|
||||
pclose(proc);
|
||||
|
|
|
@ -125,7 +125,7 @@ int main()
|
|||
}
|
||||
|
||||
// Release the frame buffer.
|
||||
malloc(buffer);
|
||||
free(buffer);
|
||||
|
||||
// Close the standard input and standard output handles.
|
||||
CloseHandle(streamProc.stdinWritePipe);
|
||||
|
|
Loading…
Reference in a new issue