By default, set buffer size to 0 on creation.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-07-25 08:50:47 +01:00
parent 2a94274a99
commit 6e72cb0573
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ e_buffer_resource_get(struct wl_resource *resource)
if (!(buffer = E_NEW_RAW(E_Buffer, 1)))
return NULL;
buffer->w = 0;
buffer->h = 0;
buffer->wl.resource = resource;
wl_signal_init(&buffer->signals.destroy);
buffer->buffer_destroy.notify = _e_buffer_cb_destroy;