[empathy] Check for NULL values returned by dup_selected()
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Check for NULL values returned by dup_selected()
- Date: Tue, 25 Aug 2009 11:02:10 +0000 (UTC)
commit aee5f035ce319f43a541bcf0cbdc536d648192eb
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Aug 25 02:50:53 2009 +0200
Check for NULL values returned by dup_selected()
src/empathy-accounts-dialog.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 40f46e4..b2378b7 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -290,6 +290,15 @@ accounts_dialog_protocol_changed_cb (GtkWidget *widget,
cm = empathy_protocol_chooser_dup_selected (
EMPATHY_PROTOCOL_CHOOSER (priv->combobox_protocol), &proto);
+ if (cm == NULL)
+ return;
+
+ if (proto == NULL)
+ {
+ g_object_unref (cm);
+ return;
+ }
+
if (tp_connection_manager_protocol_can_register (proto))
{
gtk_widget_show (priv->radiobutton_register);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]