diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-11-28 09:42:14 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-11-28 09:42:14 +0000 |
commit | 0fbc1564ed0f6335f98b7269683f1ca5f068a830 (patch) | |
tree | 0e3e2373d2452bb6ea4d07d89fb10f2aab31795a /src/timeline.c | |
parent | 41d4323d2b7dbfb8f203291692d20a02c09ffd23 (diff) |
Use a big chunk allocator for permanent allocations.
Diffstat (limited to 'src/timeline.c')
-rw-r--r-- | src/timeline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/timeline.c b/src/timeline.c index e7d0a98..90dafa5 100644 --- a/src/timeline.c +++ b/src/timeline.c @@ -344,11 +344,13 @@ timeline_new (void) void timeline_add_datum (Timeline *tl, guint time, Allocator *A) { - TimelineData *data = g_slice_new (TimelineData); + TimelineData *data; TimelineData *prev; guint64 bytes; guint blocks; + data = app_alloc (app_get (&tl->widget), sizeof (TimelineData)); + prev = tl->tail; if (tl->tail != NULL) { g_assert (time > tl->tail->time); |