r2166 - trunk/src/target/OM-2007/applications/openmoko-dialer/src
njp at sita.openmoko.org
njp at sita.openmoko.org
Tue Jun 5 16:56:53 CEST 2007
Author: njp
Date: 2007-06-05 16:56:52 +0200 (Tue, 05 Jun 2007)
New Revision: 2166
Modified:
trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c
Log:
fixed segfault in 'delete call' dialog
Modified: trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c 2007-06-05 13:59:46 UTC (rev 2165)
+++ trunk/src/target/OM-2007/applications/openmoko-dialer/src/dialer-window-history.c 2007-06-05 14:56:52 UTC (rev 2166)
@@ -234,6 +234,9 @@
gtk_tree_model_get (model, &iter, HISTORY_ENTRY_POINTER, &entry, -1);
+ if (entry == NULL)
+ return;
+
if (!(uid = moko_journal_entry_get_uid (entry)))
{
g_print ("Unable to get entry\n");
@@ -259,6 +262,7 @@
break;
default:
gtk_widget_destroy (dialog);
+ return;
break;
}
@@ -840,6 +844,7 @@
j++;
i++;
}
+
return 1;
}
More information about the commitlog
mailing list