aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <poincare@ikezoe.net>2006-06-14 03:27:28 +0800
committerAndre Klapper <aklapper@src.gnome.org>2006-06-14 03:27:28 +0800
commit14794b3d26e6be55aba0dd173dbb81c288b13ba5 (patch)
tree25922f5fe2e63dde419eea81bd04707112556da9
parent8d9d2df3483b44a5e3e5f1fb382401adecb82b23 (diff)
downloadgsoc2013-evolution-14794b3d26e6be55aba0dd173dbb81c288b13ba5.tar.gz
gsoc2013-evolution-14794b3d26e6be55aba0dd173dbb81c288b13ba5.tar.zst
gsoc2013-evolution-14794b3d26e6be55aba0dd173dbb81c288b13ba5.zip
** Fixes bug #342646 Plugged memory leak. Ditto.
2006-06-13 Hiroyuki Ikezoe <poincare@ikezoe.net> ** Fixes bug #342646 * gui/widgets/e-addressbook-view.c: Plugged memory leak. * gui/widgets/e-minicard-view.c: Ditto. svn path=/trunk/; revision=32129
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c4
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index fdad04e0a4..e1e1498e8e 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-13 Hiroyuki Ikezoe <poincare@ikezoe.net>
+
+ ** Fixes bug #342646
+ * gui/widgets/e-addressbook-view.c: Plugged memory leak.
+ * gui/widgets/e-minicard-view.c: Ditto.
+
2006-06-13 Oswald Rodrigues <ozzy_rodrigues@yahoo.com>
* gui/contact-editor/e-contact-quick-add.c (build_quick_add_dialog):
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 2a6b462337..bf541bb05c 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -1150,6 +1150,7 @@ table_drag_data_get (ETable *table,
selection_data->target,
8,
value, strlen (value));
+ g_free (value);
break;
}
case DND_TARGET_TYPE_SOURCE_VCARD: {
@@ -1161,6 +1162,7 @@ table_drag_data_get (ETable *table,
selection_data->target,
8,
value, strlen (value));
+ g_free (value);
break;
}
}
@@ -1973,7 +1975,7 @@ selection_get (GtkWidget *invisible,
gtk_selection_data_set (selection_data, GDK_SELECTION_TYPE_STRING,
8, value, strlen (value));
-
+ g_free (value);
}
static void
diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c
index eeb1daea11..34085b4a4a 100644
--- a/addressbook/gui/widgets/e-minicard-view.c
+++ b/addressbook/gui/widgets/e-minicard-view.c
@@ -95,6 +95,7 @@ e_minicard_view_drag_data_get(GtkWidget *widget,
selection_data->target,
8,
value, strlen (value));
+ g_free (value);
break;
}
case DND_TARGET_TYPE_SOURCE_VCARD_LIST: {
@@ -108,6 +109,7 @@ e_minicard_view_drag_data_get(GtkWidget *widget,
selection_data->target,
8,
value, strlen (value));
+ g_free (value);
break;
}
}