summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2011-01-18 09:36:09 +0200
committerStefan Kost <ensonic@users.sf.net>2011-01-18 09:46:47 +0200
commit91f9c9f5937f786d7c98584638587c13aed8f810 (patch)
treecf93150bea56e075707145c9d2372c249a251713
parent0819aec97a689c3fd820633016b270734db4573a (diff)
ui: init object to NULL to not deref crap on exit
-rw-r--r--src/ui/gsttlui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/gsttlui.c b/src/ui/gsttlui.c
index d4020e7..010204d 100644
--- a/src/ui/gsttlui.c
+++ b/src/ui/gsttlui.c
@@ -90,7 +90,7 @@ main (gint argc, gchar *argv[])
{NULL}
};
GstTLMainWindow *mw;
- GstTLLogBuffer *lb;
+ GstTLLogBuffer *lb = NULL;
ctx = g_option_context_new (NULL);
group=g_option_group_new ("main", _("gsttlui options"),_("Show gsttlui options"), argv[0], NULL);
@@ -105,7 +105,7 @@ main (gint argc, gchar *argv[])
g_option_context_free (ctx);
exit (1);
}
-
+
#ifdef ENABLE_TRACE
if (getenv("GSTTLUI_DEBUG")) {
_log_printf = _log_printf_stdout;
@@ -124,7 +124,7 @@ main (gint argc, gchar *argv[])
fprintf (stderr, "neither log-file nor log-port set.\n");
goto Done;
}
-
+
/* create g_quarks */
log_event_type_rusage = g_quark_from_static_string ("rusage");
log_event_type_ev = g_quark_from_static_string ("ev");