aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-09-14 08:59:34 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-09-14 08:59:34 +0200
commit8b7183be4edd964fe2dad738962e1b1156300668 (patch)
tree2ed832dc8e5a869c2b7940d7911c53afcaaeff26 /src/messages-service.c
parentc533fedbc822c22eb30543dbe605c705e95c3920 (diff)
downloadayatana-indicator-messages-8b7183be4edd964fe2dad738962e1b1156300668.tar.gz
ayatana-indicator-messages-8b7183be4edd964fe2dad738962e1b1156300668.tar.bz2
ayatana-indicator-messages-8b7183be4edd964fe2dad738962e1b1156300668.zip
messages-services: don't call g_object_unref with NULL
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index bc9ac1b..fd0bdcb 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -132,7 +132,8 @@ update_chat_section ()
g_menu_insert_section (menu, 0, NULL, chat_section);
}
- g_object_unref (first_section);
+ if (first_section != NULL)
+ g_object_unref (first_section);
}
static void