forked from drath/libratbag
When accessing the buttons of a profile, we should not unref it until we are done (or there will be some illegal access to a free-ed pointer). The last profile_unref should be called against the active_profile, not the last profile. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>