fix: crash when calling setProgressBar on macOS (#16374)
fix: crash when calling setProgressBar on macOS (#16374)

* fix: correctly check whether dock has progress bar

* fix: do not leak memory when setting dockTile

electron/electron,bpasero/electron,gerhardberger/electron,gerhardberger/electron,gerhardberger/electron,gerhardberger/electron,the-ress/electron,the-ress/electron,seanchas116/electron,the-ress/electron,electron/electron,electron/electron,seanchas116/electron,bpasero/electron,gerhardberger/electron,electron/electron,electron/electron,bpasero/electron,the-ress/electron,seanchas116/electron,electron/electron,bpasero/electron,seanchas116/electron,bpasero/electron,electron/electron,seanchas116/electron,the-ress/electron,the-ress/electron,gerhardberger/electron,gerhardberger/electron,the-ress/electron,seanchas116/electron,bpasero/electron,bpasero/electron