mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-20 04:08:54 -05:00
Contrary to what the name would have you believe, QPointer<> is not used to delete a pointer when it leaves its specific scope. Instead, it's used to check to see if the pointer is still valid. For most QWidget-based objects, this is actually fine because QWidgets that are assigned to layouts or other widgets will automatically be destroyed -- however, for non-widget objects, this can cause a memory leak. This patch replaces QPointer with QScopedPointer where applicable to prevent memory leaks. Closes obsproject/obs-studio#1367
34 KiB
34 KiB