[Spice-devel] [spice-server 4/9] syntax-check: Remove unneeded cast of free() argument

Christophe Fergeau cfergeau at redhat.com
Thu Oct 27 14:12:12 UTC 2016


---
 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..2e22edf 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);
     }
     return ret;
 }
-- 
2.9.3



More information about the Spice-devel mailing list