2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>

* clutter/clutter-timeout-pool.c:
	(clutter_timeout_pool_new): Fix previous commit: g_source_unref()
	is not needed. (Thanks to Neil Roberts)
This commit is contained in:
Emmanuele Bassi 2008-09-23 12:58:31 +00:00
parent 9ddfe73b39
commit b3726e4d66
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
* clutter/clutter-timeout-pool.c:
(clutter_timeout_pool_new): Fix previous commit: g_source_unref()
is not needed. (Thanks to Neil Roberts)
2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com> 2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Bug 1154 - clutter_timeout_pool_new() documentation doesn't say Bug 1154 - clutter_timeout_pool_new() documentation doesn't say

View File

@ -422,8 +422,9 @@ clutter_timeout_pool_finalize (GSource *source)
* Inside Clutter, every #ClutterTimeline share the same timeout pool, unless * Inside Clutter, every #ClutterTimeline share the same timeout pool, unless
* the CLUTTER_TIMELINE=no-pool environment variable is set. * the CLUTTER_TIMELINE=no-pool environment variable is set.
* *
* Return value: the newly created #ClutterTimeoutPool. Use g_source_unref() * Return value: the newly created #ClutterTimeoutPool. The created pool
* to release the resources allocated by this function * is owned by the GLib default context and should not be unreferenced
* or freed
* *
* Since: 0.4 * Since: 0.4
*/ */
@ -442,9 +443,12 @@ clutter_timeout_pool_new (gint priority)
g_source_set_priority (source, priority); g_source_set_priority (source, priority);
pool = (ClutterTimeoutPool *) source; pool = (ClutterTimeoutPool *) source;
g_get_current_time (&pool->start_time); g_get_current_time (&pool->start_time);
pool->next_id = 1; pool->next_id = 1;
pool->id = g_source_attach (source, NULL); pool->id = g_source_attach (source, NULL);
/* let the default GLib context manage the pool */
g_source_unref (source); g_source_unref (source);
return pool; return pool;