kooloveme / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

Memory leak #359

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
HtmlViewer-HtmlViewer-11.4-to-11.5

In the highlighted line of code memory leak occurs.

procedure TMailViewForm.CurMailMVHTMLVieverRightClick(Sender: TObject;
  Parameters: TRightClickParameters);
var Pt: TPoint;
begin
  FoundObject := nil;
  with Parameters do
   begin
    FoundObject := Image;
    CopyImageCurMailMVItem.Visible := FoundObject <> nil;
--->    CopyImageCurMailMVItem.Enabled := (FoundObject <> nil) and 
(FoundObject.Bitmap <> nil);

    GetCursorPos(Pt);
    PopupMenu.Popup(Pt.X, Pt.Y);
   end;
end;

Original issue reported on code.google.com by SchwarzK...@yandex.ru on 2 Jun 2014 at 5:16

Attachments:

GoogleCodeExporter commented 9 years ago
I fixed a memory leak in a GetBitmap, but I cannot figure out, if it is the 
same as yours or not.

Please get the latest sources and test.

Thanks
OrphanCat

Original comment by OrphanCat on 2 Jun 2014 at 6:10

GoogleCodeExporter commented 9 years ago
Yes, the problem is corrected. Memory leaks do not watch.

Original comment by SchwarzK...@yandex.ru on 2 Jun 2014 at 6:17

GoogleCodeExporter commented 9 years ago
Thanks for testing.

Original comment by OrphanCat on 2 Jun 2014 at 10:06