---
 src/qxl_surface.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index 7554ca6..6a6242e 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -1167,7 +1167,9 @@ qxl_surface_copy (qxl_surface_t *dest,
     }
     else
     {
-       image = qxl_allocnf (qxl, sizeof *image);
+        struct qxlhw_mem image_mem = qxlhw_data_alloc (qxl->hw, sizeof *image);
+
+       image = image_mem.addr;
 
        dest->u.copy_src->ref_count++;
 
-- 
1.7.9.3

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to