On Mon, 2019-03-18 at 14:38 +0100, Enrico Mioso wrote:
> Regarding the code, at exit I do the following:
> if (my_state->mainloop) {
> g_main_loop_unref(my_state->mainloop);
> my_state->mainloop = NULL;
> }
>
> if (my_state->ctx) {
> g_main_context_unref(my_state->ctx);
> m
n Mon, 18 Mar 2019, Philip Withnall wrote:
Date: Mon, 18 Mar 2019 14:51:25
From: Philip Withnall
To: Enrico Mioso
Cc: gtk-app-devel-list@gnome.org
Subject: Re: Correct way to deallocate an unix signal source
On Mon, 2019-03-18 at 14:38 +0100, Enrico Mioso wrote:
Regarding the code, at exit I do
tate->ctx) {
g_main_context_unref(my_state->ctx);
my_state->ctx = NULL;
}
Thank you to all reading this,
Enrico
On Mon, 18 Mar 2019, Philip Withnall wrote:
Date: Mon, 18 Mar 2019 10:42:11
From: Philip Withnall
To: Enrico Mioso , gtk-app-devel-list@gnome.org
Subject: Re: Correct way to dealloc
Hi,
On Thu, 2019-03-14 at 00:09 +0100, Enrico Mioso wrote:
> I am facing an issue, where it seems I am not deallocating correctly
> an UNIX signal source. I use
> my_state->unix_signals_src = g_unix_signal_source_new(SIGINT);
> g_source_set_callback(my_state->unix_signals_src, my_unix_signals_cb,
Hello all,
and thank you for your great work in the GLib library, and the entire GTK
ecosystem! :)
I am facing an issue, where it seems I am not deallocating correctly an UNIX
signal source. I use
my_state->unix_signals_src = g_unix_signal_source_new(SIGINT);
g_source_set_callback(my_state->un