fix memleak, init and compil

This commit is contained in:
Jacek Jendrzej
2017-11-10 12:25:58 +01:00
parent 1e8e9bcc4d
commit b75667176b
2 changed files with 4 additions and 2 deletions

View File

@@ -1037,7 +1037,7 @@ void cCA::setInputs()
if (fd)
{
printf("set input%d to tuner %s\n", number, getTunerLetter(number).c_str());
fprintf(fd, getTunerLetter(number).c_str());
fprintf(fd,"%s", getTunerLetter(number).c_str());
}
else
{

View File

@@ -325,7 +325,7 @@ GstBusSyncReply Gst_bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
case GST_STATE_CHANGE_READY_TO_PAUSED:
{
GstIterator *children;
GValue r = { 0, };
GValue r = G_VALUE_INIT;
if (audioSink)
{
@@ -390,6 +390,8 @@ GstBusSyncReply Gst_bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
default:
break;
}
if(sourceName)
g_free(sourceName);
return GST_BUS_DROP;
}