Changeset 4c25f86b in mainline


Ignore:
Timestamp:
2024-08-22T13:02:11Z (3 weeks ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
7268bf1
Parents:
c06bd5e
Message:

viewer: Fix deallocation loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/viewer/viewer.c

    rc06bd5e r4c25f86b  
    517517        if (viewer != NULL && viewer->imgs != NULL) {
    518518                for (u = 0; u < viewer->imgs_count; u++) {
    519                         if (viewer->imgs[i] != NULL)
    520                                 free(viewer->imgs[i]);
     519                        if (viewer->imgs[u] != NULL)
     520                                free(viewer->imgs[u]);
    521521                }
    522522                free(viewer->imgs);
Note: See TracChangeset for help on using the changeset viewer.