mymem.c: Allow elements to exist independently of a buffer.for_master/mymem-c-allow-elements-to-exis
commitd5e9c841fc3d868a9ec078257046b0fd7251f7ff
authorPeter Clifton <peter@clifton-electronics.co.uk>
Sat, 22 Dec 2012 17:59:14 +0000 (22 17:59 +0000)
committerPeter Clifton <peter@clifton-electronics.co.uk>
Sat, 22 Dec 2012 21:54:34 +0000 (22 21:54 +0000)
tree3f4f5c0cb4e01666f9d6662cf649117f300f9b51
parentb1f19e6c252513b57a107a784a28094b4e1c2c19
mymem.c: Allow elements to exist independently of a buffer.

If the DataType pointer to GetElementMemory is NULL, we allocate
memory but don't add to the buffer's element list or counters.

This is useful as it will allow rendering of pinout previews without
needing separate (or static) memory allocation to hold the previewed
Element.
src/mymem.c