aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-04-05 06:32:12 +0800
committerDan Winship <danw@src.gnome.org>2002-04-05 06:32:12 +0800
commit02dee9478c2416e88922698bf81b7eb9152b9374 (patch)
tree66e62552de9590ced95551c8072602cfa4f1254d
parent9bd77403270d146798a637fbf32dec6733abf4f1 (diff)
downloadgsoc2013-evolution-02dee9478c2416e88922698bf81b7eb9152b9374.tar
gsoc2013-evolution-02dee9478c2416e88922698bf81b7eb9152b9374.tar.gz
gsoc2013-evolution-02dee9478c2416e88922698bf81b7eb9152b9374.tar.bz2
gsoc2013-evolution-02dee9478c2416e88922698bf81b7eb9152b9374.tar.lz
gsoc2013-evolution-02dee9478c2416e88922698bf81b7eb9152b9374.tar.xz
gsoc2013-evolution-02dee9478c2416e88922698bf81b7eb9152b9374.tar.zst
gsoc2013-evolution-02dee9478c2416e88922698bf81b7eb9152b9374.zip
Fix a memory mixup.
* evolution-shell-client.c (evolution_shell_client_get_pixbuf_for_type): Fix a memory mixup. svn path=/trunk/; revision=16359
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/evolution-shell-client.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 89e52dac03..b99d8307e8 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,10 @@
2002-04-04 Dan Winship <danw@ximian.com>
+ * evolution-shell-client.c
+ (evolution_shell_client_get_pixbuf_for_type): Fix a memory mixup.
+
+2002-04-04 Dan Winship <danw@ximian.com>
+
* evolution-folder-selector-button.c: New widget for a button that
displays a folder selection in a standard form, and when clicked
lets the user select a new folder.
diff --git a/shell/evolution-shell-client.c b/shell/evolution-shell-client.c
index e04d4cf26e..45cd81b070 100644
--- a/shell/evolution-shell-client.c
+++ b/shell/evolution-shell-client.c
@@ -584,9 +584,9 @@ evolution_shell_client_get_pixbuf_for_type (EvolutionShellClient *shell_client,
g_hash_table_insert (shell_client->priv->icons,
hash_name, pixbuf);
- }
+ } else
+ g_free (hash_name);
- g_free (hash_name);
gdk_pixbuf_ref (pixbuf);
return pixbuf;
}