r300g: Fix memory leak on error path.

This commit is contained in:
Vinson Lee 2010-06-10 00:33:25 -07:00
parent 6383428588
commit 9be40de087
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ r300_texture_get_transfer(struct pipe_context *ctx,
/* Otherwise, go to hell. */
fprintf(stderr,
"r300: Failed to create a transfer object, praise.\n");
FREE(trans);
return NULL;
}
}