summaryrefslogtreecommitdiff
path: root/src/wayland-source.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland-source.c')
-rw-r--r--src/wayland-source.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wayland-source.c b/src/wayland-source.c
index 516fc0c..875c32c 100644
--- a/src/wayland-source.c
+++ b/src/wayland-source.c
@@ -96,6 +96,7 @@ WLSource *wl_source_new() {
void wl_source_free(WLSource *self) {
GSource *source = (GSource *)self;
+ g_return_if_fail(source != NULL);
g_source_destroy(source);
g_source_unref(source);
}