Remember the number of blur kernels
Don't count the number of blur kernels everytime. Fixes #188 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -2010,7 +2010,7 @@ static void session_destroy(session_t *ps) {
|
||||
|
||||
free(ps->o.write_pid_path);
|
||||
free(ps->o.logpath);
|
||||
for (int i = 0; ps->o.blur_kerns[i]; ++i) {
|
||||
for (int i = 0; i < ps->o.blur_kernel_count; ++i) {
|
||||
free(ps->o.blur_kerns[i]);
|
||||
}
|
||||
free(ps->o.blur_kerns);
|
||||
|
Reference in New Issue
Block a user