Skip to content

Commit

Permalink
xvimagesink/ximagesink: Fix structure memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Vineeth TM authored and Thiago Santos committed Nov 17, 2015
1 parent 09c881e commit 5f79ccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys/ximage/ximagesink.c
Expand Up @@ -1541,6 +1541,7 @@ gst_x_image_sink_navigation_send_event (GstNavigation * navigation,

if (!ximagesink->xwindow) {
g_mutex_unlock (&ximagesink->flow_lock);
gst_structure_free (structure);
return;
}

Expand Down
1 change: 1 addition & 0 deletions sys/xvimage/xvimagesink.c
Expand Up @@ -1126,6 +1126,7 @@ gst_xv_image_sink_navigation_send_event (GstNavigation * navigation,

if (!(xwindow = xvimagesink->xwindow)) {
g_mutex_unlock (&xvimagesink->flow_lock);
gst_structure_free (structure);
return;
}

Expand Down

0 comments on commit 5f79ccb

Please sign in to comment.