Prevent crash in QXcbIntegration::grabWindow().
Copy the image explicitly before calling QPixmap::fromImage().bb10
parent
e99ab7de9b
commit
daa707ebf7
|
|
@ -330,8 +330,7 @@ QPixmap QXcbIntegration::grabWindow(WId window, int x, int y, int width, int hei
|
|||
}
|
||||
}
|
||||
|
||||
image.detach();
|
||||
result = QPixmap::fromImage(image);
|
||||
result = QPixmap::fromImage(image.copy());
|
||||
}
|
||||
|
||||
free(image_reply);
|
||||
|
|
|
|||
Loading…
Reference in New Issue