]> git.sesse.net Git - vlc/commit
skins2: solve crashes due to releasing variables at termination
authorErwan Tulou <erwan10@videolan.org>
Tue, 23 Jun 2009 21:30:01 +0000 (23:30 +0200)
committerErwan Tulou <erwan10@videolan.org>
Tue, 23 Jun 2009 22:04:00 +0000 (00:04 +0200)
commitfb771cf9b235d5c64030236e63ca4585db840efe
treec07b44e3163e7341ae196c009467e26da0ab7de2
parentc0d7a7d3dddaa6b20cdd0b8c996e62028cba6858
skins2: solve crashes due to releasing variables at termination

skins was using two lists of variables (named and anonymous).
The problem was that variables from one list held references to variables from the other list and vice-versa. Whatever the order of releasing them, crashes could occur.

This patch uses the anonymous list to keep a reference on **all** variables.
This guarantees they are released in the reverse order from creation.
modules/gui/skins2/src/var_manager.cpp