[libchamplain] Fix 594003: invalid write of size 4
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain] Fix 594003: invalid write of size 4
- Date: Thu, 3 Sep 2009 12:37:35 +0000 (UTC)
commit 209f9f85b0528063bca9a233da9e6841166ffba4
Author: Felix Riemann <friemann gnome org>
Date: Thu Sep 3 08:36:14 2009 -0400
Fix 594003: invalid write of size 4
champlain/champlain-cache.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/champlain/champlain-cache.c b/champlain/champlain-cache.c
index 505440e..ca9f99d 100644
--- a/champlain/champlain-cache.c
+++ b/champlain/champlain-cache.c
@@ -431,7 +431,9 @@ champlain_cache_fill_tile (ChamplainCache *self,
if (priv->popularity_id == 0)
{
g_object_ref (self);
- priv->popularity_id = g_idle_add (inc_popularity, self);
+ priv->popularity_id = g_idle_add_full (G_PRIORITY_DEFAULT_IDLE,
+ inc_popularity, self,
+ g_object_unref);
}
cleanup:
@@ -479,7 +481,6 @@ inc_popularity (gpointer data)
if (priv->popularity_queue == NULL)
{
- g_object_unref (cache);
priv->popularity_id = 0;
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]