TQFileDialog: cleanup pixmaps before destroying TQApplication #138

Merged
MicheleC merged 1 commits from other/filedialog-pixmaps-cleanup into master 2 months ago
Collaborator

Otherwise it results in small memmory leakage on exit of Xlib data.

Otherwise it results in small memmory leakage on exit of Xlib data.
Fat-Zer added 1 commit 2 months ago
9ffacc2652
TQFileDialog: cleanup pixmaps before destroying TQApplication
SlavekB approved these changes 2 months ago
SlavekB left a comment
Owner

It seems good.

It seems good.
MicheleC reviewed 2 months ago
MicheleC left a comment
Owner

Right after the definition of qfd_cleanup_pixmap there is the definition of qfd_cleanup_string in the exact same manner. Seems to me this also requires to be clean up when the application exits. Perhaps we can use the same post routine to clean up both?

Right after the definition of `qfd_cleanup_pixmap` there is the definition of `qfd_cleanup_string` in the exact same manner. Seems to me this also requires to be clean up when the application exits. Perhaps we can use the same post routine to clean up both?
Poster
Collaborator

Right after the definition of qfd_cleanup_pixmap there is the definition of qfd_cleanup_string in the exact same manner. Seems to me this also requires to be clean up when the application exits. Perhaps we can use the same post routine to clean up both?

TQCleanupHandler will cleanup everything on destruction anyway. The difference is the TQPixmaps should be destroyed before TQApplication, when the TQStrings can safely wait till the destruction of statics. So it's fine to leave those up to mercy of the destructor...

> Right after the definition of qfd_cleanup_pixmap there is the definition of qfd_cleanup_string in the exact same manner. Seems to me this also requires to be clean up when the application exits. Perhaps we can use the same post routine to clean up both? `TQCleanupHandler` will cleanup everything on destruction anyway. The difference is the TQPixmaps should be destroyed before TQApplication, when the TQStrings can safely wait till the destruction of statics. So it's fine to leave those up to mercy of the destructor...
Owner

Ah ah, I see. Thanks for the clarification.

Btw, you should have an email from Slavek in your inbox from a few days ago, in case you missed that @Fat-Zer

Ah ah, I see. Thanks for the clarification. Btw, you should have an email from Slavek in your inbox from a few days ago, in case you missed that @Fat-Zer
MicheleC force-pushed other/filedialog-pixmaps-cleanup from 9ffacc2652 to fb0d62eec8 2 months ago
MicheleC merged commit fb0d62eec8 into master 2 months ago
MicheleC deleted branch other/filedialog-pixmaps-cleanup 2 months ago
MicheleC added this to the R14.1.2 release milestone 2 months ago

Reviewers

SlavekB approved these changes 2 months ago
The pull request has been merged as fb0d62eec8.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tqt3#138
Loading…
There is no content yet.