gnome-panel r11032 - trunk/applets/clock
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-panel r11032 - trunk/applets/clock
- Date: Thu, 10 Apr 2008 06:36:44 +0100 (BST)
Author: vuntz
Date: Thu Apr 10 06:36:43 2008
New Revision: 11032
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11032&view=rev
Log:
2008-04-10 Vincent Untz <vuntz gnome org>
* clock-face.c: (clock_face_finalize): do not try to get the size of
the cache if there's no cache. Can happen if the faces are destroyed
before being shown.
Modified:
trunk/applets/clock/ChangeLog
trunk/applets/clock/clock-face.c
Modified: trunk/applets/clock/clock-face.c
==============================================================================
--- trunk/applets/clock/clock-face.c (original)
+++ trunk/applets/clock/clock-face.c Thu Apr 10 06:36:43 2008
@@ -373,7 +373,7 @@
G_OBJECT_CLASS (clock_face_parent_class)->finalize (obj);
- if (g_hash_table_size (pixbuf_cache) == 0) {
+ if (pixbuf_cache && g_hash_table_size (pixbuf_cache) == 0) {
g_hash_table_destroy (pixbuf_cache);
pixbuf_cache = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]