summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kjellerstedt <pkj@axis.com>2009-02-02 14:19:57 +0100
committerPeter Kjellerstedt <pkj@axis.com>2009-02-02 14:19:57 +0100
commit846d56b865da85f416580ebc3109e18cf079d673 (patch)
tree746cdc97dbdcabe2b742030f92ca1443a034f23b
parent37a37d0b4d306484f8e80e268878723a6df2690e (diff)
gstregistrybinary: Make it compile with GST_DISABLE_GST_DEBUG.
-rw-r--r--gst/gstregistrybinary.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gstregistrybinary.c b/gst/gstregistrybinary.c
index 970a262da4..5f68b85592 100644
--- a/gst/gstregistrybinary.c
+++ b/gst/gstregistrybinary.c
@@ -1164,7 +1164,9 @@ gst_registry_binary_read_cache (GstRegistry * registry, const char *location)
g_file_get_contents (location, &contents, &size, &err);
if (err != NULL) {
GST_INFO ("Unable to read file %s : %s", location, err->message);
+#ifndef GST_DISABLE_GST_DEBUG
g_timer_destroy (timer);
+#endif
g_error_free (err);
return FALSE;
}