[Spice-devel] [PATCH spice-server 5/5] syntax-check: Silent a wrong positive
Frediano Ziglio
fziglio at redhat.com
Wed Nov 9 16:00:12 UTC 2016
Due to syntax-check limitation this free calls results in
a syntax error.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/mjpeg-encoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/mjpeg-encoder.c b/server/mjpeg-encoder.c
index d95c645..21778b8 100644
--- a/server/mjpeg-encoder.c
+++ b/server/mjpeg-encoder.c
@@ -969,7 +969,7 @@ static int mjpeg_encoder_encode_frame(VideoEncoder *video_encoder,
}
if (ret != VIDEO_ENCODER_FRAME_ENCODE_DONE) {
- buffer->base.free((VideoBuffer*)buffer);
+ buffer->base.free(&buffer->base);
}
return ret;
}
--
2.7.4
More information about the Spice-devel
mailing list