Handle failure to reference a buffer name better

This commit is contained in:
Kristian Høgsberg 2010-08-05 17:44:31 -04:00
parent 5b75f1b218
commit c071f4d008
5 changed files with 34 additions and 12 deletions

View file

@ -28,6 +28,7 @@
#include <sys/uio.h>
#include <ffi.h>
#include <assert.h>
#include <fcntl.h>
#include "wayland-util.h"
#include "connection.h"
@ -69,6 +70,7 @@ wl_connection_create(int fd,
void
wl_connection_destroy(struct wl_connection *connection)
{
close(connection->fd);
free(connection);
}