summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-play.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gst-play.c b/tools/gst-play.c
index 8b299a015..9b9fe0687 100644
--- a/tools/gst-play.c
+++ b/tools/gst-play.c
@@ -391,7 +391,7 @@ play_bus_msg (GstBus * bus, GstMessage * msg, gpointer user_data)
{
GstNavigationMessageType mtype = gst_navigation_message_get_type (msg);
if (mtype == GST_NAVIGATION_MESSAGE_EVENT) {
- GstEvent *ev;
+ GstEvent *ev = NULL;
if (gst_navigation_message_parse_event (msg, &ev)) {
GstNavigationEventType e_type = gst_navigation_event_get_type (ev);
@@ -439,6 +439,8 @@ play_bus_msg (GstBus * bus, GstMessage * msg, gpointer user_data)
break;
}
}
+ if (ev)
+ gst_event_unref (ev);
}
break;
}