Remove redundant AddRef call for QtPropertyBag
Before QtPropertyBag inherited from QComObject, instances were
constructed with a reference count of 0. QComObject initializes the
reference count to 1, so an explicit AddRef after construction is no
longer necessary.
Calling AddRef increments the reference count to 2, preventing the
object from being released and resulting in a leak.
Change-Id: I8bad8d905690e3a435f88438049f230efe44e289
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
| commit | 534e988a72b50b0044429f88ae4d72f7bb02ac0b |
| parent | 883a7bab848048f87e85b7ed652de465aba732e7 |
| author | Pavel Dubsky <pavel.dubsky@qt.io> |
| committer | Pavel Dubsky <pavel.dubsky@qt.io> |
| commit time | Mon, 1 Dec 2025 12:39:45 +0100 |