Fixed a race condition where some recording frames may not be released

bug - 3258924

Change-Id: I4f30d04a713676f5da40e6a7dd861510cc041f9b
diff --git a/camera/Camera.cpp b/camera/Camera.cpp
index 7efc6d7..743fbb2 100644
--- a/camera/Camera.cpp
+++ b/camera/Camera.cpp
@@ -359,6 +359,9 @@
     }
     if (listener != NULL) {
         listener->postDataTimestamp(timestamp, msgType, dataPtr);
+    } else {
+        LOGW("No listener was set. Drop a recording frame.");
+        releaseRecordingFrame(dataPtr);
     }
 }