# HG changeset patch # User stefano # Date 1215984497 0 # Node ID 8c58eeb20826abb65177bad60bd150ea3150cd4a # Parent 26818b216bfbc629408729ad21da12323de731bd Fix the logic to access the location of a string to free when setting a new value for a string with av_set_string2(). Fix a segmentation fault. diff -r 26818b216bfb -r 8c58eeb20826 opt.c --- a/opt.c Sun Jul 13 20:41:09 2008 +0000 +++ b/opt.c Sun Jul 13 21:28:17 2008 +0000 @@ -196,7 +196,7 @@ } if(alloc){ - av_free((void*)(((uint8_t*)obj) + o->offset)); + av_free(*(void**)(((uint8_t*)obj) + o->offset)); val= av_strdup(val); }