mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-28 23:16:14 +01:00
Free the callback (g_source_set_callback): Initialize the callback
2001-01-23 <alexl@redhat.com> * gmain.c (g_source_callback_unref): Free the callback (g_source_set_callback): Initialize the callback refcount
This commit is contained in:
parent
3bab7875f1
commit
6d14518018
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-23 <alexl@redhat.com>
|
||||||
|
|
||||||
|
* gmain.c (g_source_callback_unref): Free the callback
|
||||||
|
(g_source_set_callback): Initialize the callback refcount
|
||||||
|
|
||||||
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-23 <alexl@redhat.com>
|
||||||
|
|
||||||
|
* gmain.c (g_source_callback_unref): Free the callback
|
||||||
|
(g_source_set_callback): Initialize the callback refcount
|
||||||
|
|
||||||
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-23 <alexl@redhat.com>
|
||||||
|
|
||||||
|
* gmain.c (g_source_callback_unref): Free the callback
|
||||||
|
(g_source_set_callback): Initialize the callback refcount
|
||||||
|
|
||||||
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-23 <alexl@redhat.com>
|
||||||
|
|
||||||
|
* gmain.c (g_source_callback_unref): Free the callback
|
||||||
|
(g_source_set_callback): Initialize the callback refcount
|
||||||
|
|
||||||
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-23 <alexl@redhat.com>
|
||||||
|
|
||||||
|
* gmain.c (g_source_callback_unref): Free the callback
|
||||||
|
(g_source_set_callback): Initialize the callback refcount
|
||||||
|
|
||||||
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-23 <alexl@redhat.com>
|
||||||
|
|
||||||
|
* gmain.c (g_source_callback_unref): Free the callback
|
||||||
|
(g_source_set_callback): Initialize the callback refcount
|
||||||
|
|
||||||
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-23 <alexl@redhat.com>
|
||||||
|
|
||||||
|
* gmain.c (g_source_callback_unref): Free the callback
|
||||||
|
(g_source_set_callback): Initialize the callback refcount
|
||||||
|
|
||||||
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-23 <alexl@redhat.com>
|
||||||
|
|
||||||
|
* gmain.c (g_source_callback_unref): Free the callback
|
||||||
|
(g_source_set_callback): Initialize the callback refcount
|
||||||
|
|
||||||
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
2001-01-20 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
|
||||||
|
@ -984,6 +984,7 @@ g_source_callback_unref (gpointer cb_data)
|
|||||||
{
|
{
|
||||||
if (callback->notify)
|
if (callback->notify)
|
||||||
callback->notify (callback->data);
|
callback->notify (callback->data);
|
||||||
|
g_free (callback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1025,6 +1026,7 @@ g_source_set_callback (GSource *source,
|
|||||||
|
|
||||||
new_callback = g_new (GSourceCallback, 1);
|
new_callback = g_new (GSourceCallback, 1);
|
||||||
|
|
||||||
|
new_callback->ref_count = 1;
|
||||||
new_callback->func = func;
|
new_callback->func = func;
|
||||||
new_callback->data = data;
|
new_callback->data = data;
|
||||||
new_callback->notify = notify;
|
new_callback->notify = notify;
|
||||||
|
2
gmain.c
2
gmain.c
@ -984,6 +984,7 @@ g_source_callback_unref (gpointer cb_data)
|
|||||||
{
|
{
|
||||||
if (callback->notify)
|
if (callback->notify)
|
||||||
callback->notify (callback->data);
|
callback->notify (callback->data);
|
||||||
|
g_free (callback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1025,6 +1026,7 @@ g_source_set_callback (GSource *source,
|
|||||||
|
|
||||||
new_callback = g_new (GSourceCallback, 1);
|
new_callback = g_new (GSourceCallback, 1);
|
||||||
|
|
||||||
|
new_callback->ref_count = 1;
|
||||||
new_callback->func = func;
|
new_callback->func = func;
|
||||||
new_callback->data = data;
|
new_callback->data = data;
|
||||||
new_callback->notify = notify;
|
new_callback->notify = notify;
|
||||||
|
Loading…
Reference in New Issue
Block a user