+Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_main_context_prepare): Handle
+ NULL entries (already dispatched) in pending_dispatches array
+ (pointed out by Manish Singh)
+
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_main_context_prepare): Unref pending
+Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_main_context_prepare): Handle
+ NULL entries (already dispatched) in pending_dispatches array
+ (pointed out by Manish Singh)
+
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_main_context_prepare): Unref pending
+Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_main_context_prepare): Handle
+ NULL entries (already dispatched) in pending_dispatches array
+ (pointed out by Manish Singh)
+
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_main_context_prepare): Unref pending
+Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_main_context_prepare): Handle
+ NULL entries (already dispatched) in pending_dispatches array
+ (pointed out by Manish Singh)
+
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_main_context_prepare): Unref pending
+Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_main_context_prepare): Handle
+ NULL entries (already dispatched) in pending_dispatches array
+ (pointed out by Manish Singh)
+
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_main_context_prepare): Unref pending
+Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_main_context_prepare): Handle
+ NULL entries (already dispatched) in pending_dispatches array
+ (pointed out by Manish Singh)
+
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_main_context_prepare): Unref pending
+Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_main_context_prepare): Handle
+ NULL entries (already dispatched) in pending_dispatches array
+ (pointed out by Manish Singh)
+
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_main_context_prepare): Unref pending
+Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_main_context_prepare): Handle
+ NULL entries (already dispatched) in pending_dispatches array
+ (pointed out by Manish Singh)
+
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_main_context_prepare): Unref pending
/* If recursing, clear list of pending dispatches */
for (i = 0; i < context->pending_dispatches->len; i++)
- SOURCE_UNREF ((GSource *)context->pending_dispatches->pdata[i], context);
+ {
+ if (context->pending_dispatches->pdata[i])
+ SOURCE_UNREF ((GSource *)context->pending_dispatches->pdata[i], context);
+ }
g_ptr_array_set_size (context->pending_dispatches, 0);
/* Prepare all sources */