]> git.sesse.net Git - mlt/commitdiff
Fix big memory leak when scrubbing.
authorDan Dennedy <dan@dennedy.org>
Thu, 10 Sep 2009 02:16:18 +0000 (19:16 -0700)
committerDan Dennedy <dan@dennedy.org>
Thu, 10 Sep 2009 02:16:18 +0000 (19:16 -0700)
src/modules/sdl/consumer_sdl_audio.c

index 207ec8431da5aa7b7fe0069a40eb83866e009bff..b7982a86afc2f5880f3f44b575a5871743e9f004 100644 (file)
@@ -522,9 +522,12 @@ static void *consumer_thread( void *arg )
                                        consumer_play_video( this, frame );
                                        pthread_cond_wait( &this->refresh_cond, &this->refresh_mutex );
                                }
+                               mlt_frame_close( frame );
                                this->refresh_count --;
                                pthread_mutex_unlock( &this->refresh_mutex );
                        }
+                       else
+                               mlt_frame_close( frame );
 
                        // Optimisation to reduce latency
                        if ( speed == 1.0 )