id, glhd: Fix segfault with misreferenced pipe member.
And remove the offending member to keep that from happening again.
This commit is contained in:
@@ -180,7 +180,7 @@ galahad_transfer_destroy(struct galahad_context *glhd_context,
|
||||
struct galahad_transfer *glhd_transfer)
|
||||
{
|
||||
pipe_resource_reference(&glhd_transfer->base.resource, NULL);
|
||||
glhd_transfer->pipe->transfer_destroy(glhd_context->pipe,
|
||||
glhd_transfer->transfer);
|
||||
glhd_context->pipe->transfer_destroy(glhd_context->pipe,
|
||||
glhd_transfer->transfer);
|
||||
FREE(glhd_transfer);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,6 @@ struct galahad_transfer
|
||||
{
|
||||
struct pipe_transfer base;
|
||||
|
||||
struct pipe_context *pipe;
|
||||
struct pipe_transfer *transfer;
|
||||
};
|
||||
|
||||
|
||||
@@ -180,8 +180,8 @@ identity_transfer_destroy(struct identity_context *id_context,
|
||||
struct identity_transfer *id_transfer)
|
||||
{
|
||||
pipe_resource_reference(&id_transfer->base.resource, NULL);
|
||||
id_transfer->pipe->transfer_destroy(id_context->pipe,
|
||||
id_transfer->transfer);
|
||||
id_context->pipe->transfer_destroy(id_context->pipe,
|
||||
id_transfer->transfer);
|
||||
FREE(id_transfer);
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@ struct identity_transfer
|
||||
{
|
||||
struct pipe_transfer base;
|
||||
|
||||
struct pipe_context *pipe;
|
||||
struct pipe_transfer *transfer;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user