projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5764316
)
info: avoid malloc/free if log object is NULL
author
Tim-Philipp Müller
<tim@centricular.com>
Thu, 5 Mar 2015 18:30:45 +0000
(18:30 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Thu, 5 Mar 2015 18:30:45 +0000
(18:30 +0000)
gst/gstinfo.c
patch
|
blob
|
history
diff --git
a/gst/gstinfo.c
b/gst/gstinfo.c
index
a506823
..
6cb06c8
100644
(file)
--- a/
gst/gstinfo.c
+++ b/
gst/gstinfo.c
@@
-1006,7
+1006,7
@@
gst_debug_log_default (GstDebugCategory * category, GstDebugLevel level,
if (object) {
obj = gst_debug_print_object (object);
} else {
- obj =
g_strdup ("")
;
+ obj =
(gchar *) ""
;
}
elapsed = GST_CLOCK_DIFF (_priv_gst_info_start_time,
@@
-1089,7
+1089,8
@@
gst_debug_log_default (GstDebugCategory * category, GstDebugLevel level,
#undef PRINT_FMT
}
- g_free (obj);
+ if (object != NULL)
+ g_free (obj);
}
/**