[libchamplain] Fix the unref of the previous image in champlain_marker_set_image
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Fix the unref of the previous image in champlain_marker_set_image
- Date: Tue, 11 May 2010 23:23:52 +0000 (UTC)
commit 12029f640a0070c0d2e798292b7419babaefbc2d
Author: JiÅ?Ã Techet <techet gmail com>
Date: Tue May 11 23:25:52 2010 +0200
Fix the unref of the previous image in champlain_marker_set_image
champlain/champlain-marker.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/champlain/champlain-marker.c b/champlain/champlain-marker.c
index e3b6489..abc030f 100644
--- a/champlain/champlain-marker.c
+++ b/champlain/champlain-marker.c
@@ -991,10 +991,7 @@ champlain_marker_set_image (ChamplainMarker *marker,
ChamplainMarkerPrivate *priv = marker->priv;
if (priv->image != NULL)
- {
- g_object_unref (image);
- clutter_actor_destroy (priv->image);
- }
+ clutter_actor_destroy (priv->image);
if (image != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]