[vlc-devel] commit: Create a function to free the memory allocated when calling ( Rémi Duraffort )

git version control git at videolan.org
Wed May 20 20:30:15 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue May 19 19:51:02 2009 +0200| [adf4fbbf6008c49512ed3313091112b8077cae05] | committer: Rémi Duraffort 

Create a function to free the memory allocated when calling
var_Change(VLC_VAR_GETCHOICES). The memory was freed by a call to
var_Change(VLC_VAR_FREELIST). That's not a good idea as we were doing a lookup
just to free some memory.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=adf4fbbf6008c49512ed3313091112b8077cae05
---

 include/vlc_variables.h                        |    5 ++-
 modules/access/v4l2.c                          |    2 +-
 modules/control/hotkeys.c                      |    8 ++--
 modules/control/http/mvar.c                    |    3 +-
 modules/control/rc.c                           |   15 +++------
 modules/demux/ts.c                             |    2 +-
 modules/gui/beos/InterfaceWindow.cpp           |   20 ++++--------
 modules/gui/macosx/controls.m                  |    2 +-
 modules/gui/ncurses.c                          |    4 +-
 modules/gui/qt4/components/extended_panels.cpp |    5 +--
 modules/gui/qt4/input_manager.cpp              |    4 +-
 modules/gui/qt4/menus.cpp                      |    4 +-
 modules/gui/wince/menus.cpp                    |    2 +-
 modules/misc/lua/libs/variables.c              |    2 +-
 modules/misc/testsuite/test4.c                 |    2 +-
 src/control/audio.c                            |    6 ++--
 src/control/media_player.c                     |   10 ++----
 src/control/video.c                            |   14 ++++----
 src/input/es_out.c                             |    2 +-
 src/input/input.c                              |    6 ++--
 src/libvlccore.sym                             |    1 +
 src/misc/variables.c                           |   36 ++++++++++++++---------
 22 files changed, 75 insertions(+), 80 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=adf4fbbf6008c49512ed3313091112b8077cae05



More information about the vlc-devel mailing list