MartinNohr / MagicImageWand

Paints Images in the Air with LEDs
Apache License 2.0
20 stars 6 forks source link

Preview on folder gives error message and then previews gives out of memory later #30

Closed MartinNohr closed 3 years ago

MartinNohr commented 3 years ago

If the currently selected file is really a folder and the preview button is pressed there will be an error message that the file can't be opened. Unfortunately the screen buffer was already allocated and the memory never released. If a valid file is then selected the preview will fail with a not enough memory error.

MartinNohr commented 3 years ago

Fixed. Call to free() was missing and folders shouldn't be selected. Both issues fixed.