From faf40c60dc60683fa3698d15bb6955f1f5ea6185 Mon Sep 17 00:00:00 2001 From: kotontrion Date: Thu, 20 Jun 2024 17:01:25 +0200 Subject: automatically init object on creation fix object finalize --- src/wayland-source.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wayland-source.c') 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); } -- cgit v1.2.3