Skip to content

Commit

Permalink
[nemo-qtmultimedia-plugins] Fixed memory leak in NemoVideoTextureBack…
Browse files Browse the repository at this point in the history
…end::probe. Fixes JB#41824

==25456== 10 bytes in 1 blocks are definitely lost in loss record 1,852 of 8,690
==25456==    at 0x483F3EC: malloc (vg_replace_malloc.c:299)
==25456==    by 0x5AF00DF: g_malloc (gmem.c:94)
==25456==    by 0x5B07185: g_strdup (gstrfuncs.c:363)
==25456==    by 0xF38F143: _gst_strdup0 (gsttaglist.c:1762)
==25456==    by 0xF38F143: gst_tag_list_get_string (gsttaglist.c:1808)
==25456==    by 0x102274B7: NemoVideoTextureBackend::probe(_GstPad*, _GstPadProbeInfo*, void*) (videotexturebackend.cpp:799)
  • Loading branch information
monich committed May 2, 2018
1 parent fd04565 commit 7227c86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/videotexturebackend/videotexturebackend.cpp
Expand Up @@ -807,6 +807,8 @@ GstPadProbeReturn NemoVideoTextureBackend::probe(GstPad *, GstPadProbeInfo *info
} else {
orientation = 0;
}

g_free(orientationTag);
} else if (GST_EVENT_TYPE(event) == GST_EVENT_STREAM_START) {
orientation = 0;
}
Expand Down

0 comments on commit 7227c86

Please sign in to comment.