mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Proper use of range for
This commit is contained in:
@ -1276,7 +1276,7 @@ YACReaderPageFlowGL::~YACReaderPageFlowGL()
|
||||
|
||||
makeCurrent();
|
||||
|
||||
for (auto image : images) {
|
||||
for (auto &image : images) {
|
||||
if (image.texture != defaultTexture) {
|
||||
if (image.texture->isCreated()) {
|
||||
image.texture->destroy();
|
||||
|
Reference in New Issue
Block a user