X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fgtk2%2Fproducer_pixbuf.c;h=88355b9a2e093d14b1bf6b03cc8175f49e512db2;hb=6820dfa615e2f55eb4ef17327c2cd293605c3389;hp=5e341fee528e9718db4b3e392b5041d26240da71;hpb=d7ae73d25cf5a38a3a8153ae52409fcbef16bb22;p=melted diff --git a/src/modules/gtk2/producer_pixbuf.c b/src/modules/gtk2/producer_pixbuf.c index 5e341fe..88355b9 100644 --- a/src/modules/gtk2/producer_pixbuf.c +++ b/src/modules/gtk2/producer_pixbuf.c @@ -401,11 +401,9 @@ static void producer_close( mlt_producer parent ) mlt_pool_release( this->image ); parent->close = NULL; mlt_producer_close( parent ); - while ( *this->filenames ) - { - free( *this->filenames ); - this->filenames++; - } + while ( this->count -- ) + free( this->filenames[ this->count ] ); + free( this->filenames ); free( this ); }