diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-06-29 13:03:11 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-06-29 13:03:11 +0200 |
commit | a1bb0a59a15d7f9ed1356e97a5f1a89af187154c (patch) | |
tree | f912257127b2cd455dd01131457490b775c11b89 | |
parent | bb070f40ba83756bc8564c5c96df782a42cec091 (diff) |
Fix bad memory free of cursor
When freeing the chunks we freed the resource multiple times instead
of actually freeing the chunks.
-rw-r--r-- | display/res.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/display/res.c b/display/res.c index 62a8bb8..8c0f39d 100644 --- a/display/res.c +++ b/display/res.c @@ -2766,7 +2766,7 @@ static void FreeCursor(PDev *pdev, Resource *res) while (chunk_phys) { QXLDataChunk *chunk = (QXLDataChunk *)VA(pdev, chunk_phys, pdev->main_mem_slot); chunk_phys = chunk->next_chunk; - FreeMem(pdev, res); + FreeMem(pdev, chunk); ONDBG(pdev->Res.num_cursor_pages--); } |