Skip to content

core: Fix a reference leak

Adrien Plazas requested to merge aplazas/retro-gtk:leak-fix into master

In 4b418a18, g_set_object() was used to simplify some code. This is wrong because it takes a reference on the newer object, which the older code didn't do because it didn't need to. The extra reference wasn't removed, leading to a leak.

This reverts that piece of code to what it was before the erroneous code cleanup.

Merge request reports