summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2006-10-25 19:48:54 +0000
committerGuy Harris <guy@alum.mit.edu>2006-10-25 19:48:54 +0000
commit007f88f3e21b68ed45763877f2c66deec628c52a (patch)
tree393ab6dea6b29b802404d6dae90e922908a2c559
parentacff0f06a57f133b99ec031a7bf587331e555d5d (diff)
downloadwireshark-007f88f3e21b68ed45763877f2c66deec628c52a.tar.gz
Unreffing rci->cursor_pixbuf should cause the pixbuf to be released, so
null out the pointer to it. This prevents a freed pixbuf from being used. svn path=/trunk/; revision=19687
-rw-r--r--gtk/rtp_player.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/rtp_player.c b/gtk/rtp_player.c
index a420b6ec4b..38f116d510 100644
--- a/gtk/rtp_player.c
+++ b/gtk/rtp_player.c
@@ -856,6 +856,7 @@ draw_channel_cursor(rtp_channel_info_t *rci, guint32 start_index)
1, rci->draw_area->allocation.height-HEIGHT_TIME_LABEL);
g_object_unref(rci->cursor_pixbuf);
+ rci->cursor_pixbuf = NULL;
}
if (index>0 && (rci->cursor_prev>=0)) {