mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
Handle failure to reference a buffer name better
This commit is contained in:
parent
5b75f1b218
commit
c071f4d008
5 changed files with 34 additions and 12 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue