mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 20:30:15 +00:00
Move not-null assertion before pointer de-ref.
* gdk/gdkdnd.c (gdk_drag_context_unref): Move not-null assertion before pointer de-ref. * gdk/gdkevents.c (gdk_event_queue_find_first): Fix infinite loop bug. Someone should look at this further to make sure the events_pending tests are correct.
This commit is contained in:
parent
e7b04a53ac
commit
8dc58cb2d3
@ -1,3 +1,12 @@
|
||||
Thu Jan 21 01:15:28 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gdk/gdkdnd.c (gdk_drag_context_unref):
|
||||
Move not-null assertion before pointer de-ref.
|
||||
|
||||
* gdk/gdkevents.c (gdk_event_queue_find_first):
|
||||
Fix infinite loop bug. Someone should look at this further to
|
||||
make sure the events_pending tests are correct.
|
||||
|
||||
Thu Jan 21 00:44:47 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_drop): Default handling
|
||||
|
@ -1,3 +1,12 @@
|
||||
Thu Jan 21 01:15:28 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gdk/gdkdnd.c (gdk_drag_context_unref):
|
||||
Move not-null assertion before pointer de-ref.
|
||||
|
||||
* gdk/gdkevents.c (gdk_event_queue_find_first):
|
||||
Fix infinite loop bug. Someone should look at this further to
|
||||
make sure the events_pending tests are correct.
|
||||
|
||||
Thu Jan 21 00:44:47 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_drop): Default handling
|
||||
|
@ -1,3 +1,12 @@
|
||||
Thu Jan 21 01:15:28 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gdk/gdkdnd.c (gdk_drag_context_unref):
|
||||
Move not-null assertion before pointer de-ref.
|
||||
|
||||
* gdk/gdkevents.c (gdk_event_queue_find_first):
|
||||
Fix infinite loop bug. Someone should look at this further to
|
||||
make sure the events_pending tests are correct.
|
||||
|
||||
Thu Jan 21 00:44:47 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_drop): Default handling
|
||||
|
@ -1,3 +1,12 @@
|
||||
Thu Jan 21 01:15:28 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gdk/gdkdnd.c (gdk_drag_context_unref):
|
||||
Move not-null assertion before pointer de-ref.
|
||||
|
||||
* gdk/gdkevents.c (gdk_event_queue_find_first):
|
||||
Fix infinite loop bug. Someone should look at this further to
|
||||
make sure the events_pending tests are correct.
|
||||
|
||||
Thu Jan 21 00:44:47 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_drop): Default handling
|
||||
|
@ -1,3 +1,12 @@
|
||||
Thu Jan 21 01:15:28 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gdk/gdkdnd.c (gdk_drag_context_unref):
|
||||
Move not-null assertion before pointer de-ref.
|
||||
|
||||
* gdk/gdkevents.c (gdk_event_queue_find_first):
|
||||
Fix infinite loop bug. Someone should look at this further to
|
||||
make sure the events_pending tests are correct.
|
||||
|
||||
Thu Jan 21 00:44:47 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_drop): Default handling
|
||||
|
@ -1,3 +1,12 @@
|
||||
Thu Jan 21 01:15:28 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gdk/gdkdnd.c (gdk_drag_context_unref):
|
||||
Move not-null assertion before pointer de-ref.
|
||||
|
||||
* gdk/gdkevents.c (gdk_event_queue_find_first):
|
||||
Fix infinite loop bug. Someone should look at this further to
|
||||
make sure the events_pending tests are correct.
|
||||
|
||||
Thu Jan 21 00:44:47 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_drop): Default handling
|
||||
|
@ -1,3 +1,12 @@
|
||||
Thu Jan 21 01:15:28 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gdk/gdkdnd.c (gdk_drag_context_unref):
|
||||
Move not-null assertion before pointer de-ref.
|
||||
|
||||
* gdk/gdkevents.c (gdk_event_queue_find_first):
|
||||
Fix infinite loop bug. Someone should look at this further to
|
||||
make sure the events_pending tests are correct.
|
||||
|
||||
Thu Jan 21 00:44:47 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_drop): Default handling
|
||||
|
@ -131,10 +131,11 @@ void
|
||||
gdk_drag_context_unref (GdkDragContext *context)
|
||||
{
|
||||
GdkDragContextPrivate *private = (GdkDragContextPrivate *)context;
|
||||
private->ref_count--;
|
||||
|
||||
|
||||
g_return_if_fail (context != NULL);
|
||||
|
||||
private->ref_count--;
|
||||
|
||||
if (private->ref_count == 0)
|
||||
{
|
||||
g_dataset_destroy (private);
|
||||
|
@ -153,9 +153,11 @@ gdk_event_queue_find_first (void)
|
||||
|
||||
while (tmp_list)
|
||||
{
|
||||
GdkEventPrivate *event = queued_events->data;
|
||||
GdkEventPrivate *event = tmp_list->data;
|
||||
if (!(event->flags & GDK_EVENT_PENDING))
|
||||
return tmp_list;
|
||||
|
||||
tmp_list = g_list_next (tmp_list);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
@ -131,10 +131,11 @@ void
|
||||
gdk_drag_context_unref (GdkDragContext *context)
|
||||
{
|
||||
GdkDragContextPrivate *private = (GdkDragContextPrivate *)context;
|
||||
private->ref_count--;
|
||||
|
||||
|
||||
g_return_if_fail (context != NULL);
|
||||
|
||||
private->ref_count--;
|
||||
|
||||
if (private->ref_count == 0)
|
||||
{
|
||||
g_dataset_destroy (private);
|
||||
|
@ -153,9 +153,11 @@ gdk_event_queue_find_first (void)
|
||||
|
||||
while (tmp_list)
|
||||
{
|
||||
GdkEventPrivate *event = queued_events->data;
|
||||
GdkEventPrivate *event = tmp_list->data;
|
||||
if (!(event->flags & GDK_EVENT_PENDING))
|
||||
return tmp_list;
|
||||
|
||||
tmp_list = g_list_next (tmp_list);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user