[Spice-devel] [PATCH qxl-wddm-dod 02/20] fixup! qxl-wddm-dod: Prepare system thread for rendering

Frediano Ziglio fziglio at redhat.com
Tue Mar 28 13:26:57 UTC 2017


Do not use reinterpret_cast for allocations if not needed
---
 qxldod/QxlDod.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index b952bf9..3337c2a 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -5084,7 +5084,7 @@ void QxlDevice::PresentThreadRoutine()
         if (drawables) {
             for (UINT i = 0; drawables[i]; ++i)
                 PushDrawable(drawables[i]);
-            delete[] reinterpret_cast<BYTE*>(drawables);
+            delete[] drawables;
         }
         else {
             DbgPrint(TRACE_LEVEL_WARNING, ("%s is being terminated\n", __FUNCTION__));
-- 
2.9.3



More information about the Spice-devel mailing list