Browse Source

Avoid leaking overlay memory

Fl_RGB_Image doesn't take ownership of the pixel data, so we have to
explicitly free this as well once we are done.
tags/v1.12.90
Pierre Ossman 2 years ago
parent
commit
3ca59d3ccf
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      vncviewer/DesktopWindow.cxx

+ 1
- 0
vncviewer/DesktopWindow.cxx View File

@@ -759,6 +759,7 @@ void DesktopWindow::setOverlay(const char* text, ...)
gettimeofday(&overlayStart, NULL);

delete image;
delete [] buffer;

Fl::add_timeout(1.0/60, updateOverlay, this);
}

Loading…
Cancel
Save