A GTK+ / GStreamer based music player
Go to file
Bryan Schumaker 05bbad5444 libsaria: Resizing a vector invalidates pointers
I was keeping a vector of objects, and then pass pointers to these
objects around everywhere.  HOWEVER, when vectors are resized they
allocate new memory and copy things over invalidating iterators and
pointers to the original objects.  This can cause memory corruption
issues when I try to use a pointer to an object that no longer exists.

The simple solution?  Allocate tracks dynamically and then store the
pointer in the library path.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2014-04-06 19:56:50 -04:00
include libsaria: Resizing a vector invalidates pointers 2014-04-06 19:56:50 -04:00
libsaria libsaria: Resizing a vector invalidates pointers 2014-04-06 19:56:50 -04:00
ocarina ocarina: Include bash completion script as part of build 2014-04-06 19:56:49 -04:00
.gitattributes Created a PKGBUILD 2011-11-11 08:12:40 -05:00
.gitignore build: Generate the PKGBUILD file during scons release 2012-06-02 12:42:05 -04:00
config.py ocarina: Include bash completion script as part of build 2014-04-06 19:56:49 -04:00
LICENSE Added license 2011-11-09 08:31:36 -05:00
PKGBUILD.tmpl libsaria: Switch to gstreamer 1.0 2012-11-08 08:09:05 -05:00
Sconstruct Correct scons release for bugfix releases 2012-12-06 19:35:54 -05:00