mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
validate: reporter: fix message leak
This commit is contained in:
parent
e9aeca28a8
commit
38342dfe2e
1 changed files with 3 additions and 3 deletions
|
@ -189,8 +189,7 @@ gst_validate_report_valist (GstValidateReporter * reporter,
|
||||||
|
|
||||||
if (int_ret == GST_VALIDATE_REPORTER_DROP) {
|
if (int_ret == GST_VALIDATE_REPORTER_DROP) {
|
||||||
gst_validate_report_unref (report);
|
gst_validate_report_unref (report);
|
||||||
g_free (message);
|
goto done;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prev_report = g_hash_table_lookup (priv->reports, (gconstpointer) issue_id);
|
prev_report = g_hash_table_lookup (priv->reports, (gconstpointer) issue_id);
|
||||||
|
@ -210,7 +209,7 @@ gst_validate_report_valist (GstValidateReporter * reporter,
|
||||||
gst_validate_report_add_repeated_report (prev_report, report);
|
gst_validate_report_add_repeated_report (prev_report, report);
|
||||||
|
|
||||||
gst_validate_report_unref (report);
|
gst_validate_report_unref (report);
|
||||||
return;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_VALIDATE_REPORTER_REPORTS_LOCK (reporter);
|
GST_VALIDATE_REPORTER_REPORTS_LOCK (reporter);
|
||||||
|
@ -229,6 +228,7 @@ gst_validate_report_valist (GstValidateReporter * reporter,
|
||||||
GST_VALIDATE_REPORT_PRINT_ARGS (report));
|
GST_VALIDATE_REPORT_PRINT_ARGS (report));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
done:
|
||||||
g_free (message);
|
g_free (message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue