summaryrefslogtreecommitdiff
path: root/src/wayland-source.c
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-06-20 17:01:25 +0200
committerkotontrion <[email protected]>2024-06-20 17:01:25 +0200
commitfaf40c60dc60683fa3698d15bb6955f1f5ea6185 (patch)
tree7bc5e12c79b537450ccb744e0a8b05df3533c94b /src/wayland-source.c
parent36ce3262ac1f137866bf7f94a2ffea8c6c6fcee6 (diff)
automatically init object on creation
fix object finalize
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);
}