diff options
author | kotontrion <[email protected]> | 2024-06-20 17:01:25 +0200 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-06-20 17:01:25 +0200 |
commit | faf40c60dc60683fa3698d15bb6955f1f5ea6185 (patch) | |
tree | 7bc5e12c79b537450ccb744e0a8b05df3533c94b /src/wayland-source.c | |
parent | 36ce3262ac1f137866bf7f94a2ffea8c6c6fcee6 (diff) |
automatically init object on creation
fix object finalize
Diffstat (limited to 'src/wayland-source.c')
-rw-r--r-- | src/wayland-source.c | 1 |
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); } |