Skip to content

Use ResourceRef<Image> in Item and Icon

Thorbjørn Lindeijer requested to merge resource-ref into master

To automate the reference counting for their Image resource.

Since the ResourceManager automatically adds a reference, it needs to be explicitly subtracted in a few places. This will go away once we can make the ResourceManager return a ResourceRef in the first place.

Also removed the apparently unused and duplicate "mDrawImage" from Item (which also didn't get decRef called on it).

Edited by Thorbjørn Lindeijer

Merge request reports