Page MenuHomePhabricator

evas: remove memory leaks from deleted Textblock objects
ClosedPublic

Authored by id213sin on Dec 6 2018, 10:27 PM.

Details

Summary

Even if a object is deleted, its render_pre function could be called.
Especially, Evas Textblock is calling relayout() function if there are
any changes. In relayout() function, it creates at least one paragraph
and one line. Normally, all of paragraphs and its line should be removed
when Evas Textblock object is deleted. But, paragraphs and lines which are
created after deleting its object never be free'd.

@fix

Test Plan
  1. Run "elementary_test".
  2. Find and run "Efl.Ui.Popup.Alert.Text" test case.
  3. Click any button to see a popup.
  4. Click "Cancel" button to close popup.

> You can see memory leaks.

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
id213sin created this revision.Dec 6 2018, 10:27 PM
id213sin requested review of this revision.Dec 6 2018, 10:27 PM
ManMower accepted this revision.Jan 9 2019, 11:41 AM
This revision is now accepted and ready to land.Jan 9 2019, 11:41 AM
This revision was automatically updated to reflect the committed changes.