Skip to content
Snippets Groups Projects
Commit 957bd1d4 authored by deuce's avatar deuce
Browse files

Fix vmem leak.

parent 35eb365d
No related branches found
No related tags found
No related merge requests found
......@@ -1147,6 +1147,7 @@ static int update_rect(int sx, int sy, int width, int height, int force)
memcpy(cvstat.vmem->fgvmem, vmem_ptr->fgvmem, vstat.cols*vstat.rows*sizeof(vmem_ptr->fgvmem[0]));
memcpy(cvstat.vmem->bgvmem, vmem_ptr->bgvmem, vstat.cols*vstat.rows*sizeof(vmem_ptr->bgvmem[0]));
pthread_mutex_unlock(&vmem_lock);
release_vmem(vmem_ptr);
if (hold_update)
redraw_cursor = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment