fixup! Fix Coverity defects 35/157935/2 submit/tizen/20171027.024111
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 26 Oct 2017 05:47:08 +0000 (14:47 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Fri, 27 Oct 2017 02:14:46 +0000 (02:14 +0000)
[Version] 0.11.30
[Issue Type] Bug Fix

Change-Id: I3931e5811379eaae5596a893c39c26d11e971872
(cherry picked from commit ec308faabad9c5b5c06b68438b391c38ce9716b5)

packaging/libmm-sound.spec
server/plugin/tone/mm_sound_plugin_codec_tone.c

index c52ff64..674d968 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.11.29
+Version:    0.11.30
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 7557ab8..bf612a0 100644 (file)
@@ -930,12 +930,6 @@ _create_tone(double *sample, TONE _TONE, double volume, int *toneSize, gboolean
                if (_TONE.high_frequency > 0)
                        quota++;
 
-               if (quota == 0) {
-                       debug_error("quota is zero!!!");
-                       g_free(buffer);
-                       return NULL;
-               }
-
                for (i = 0; i < sample_size; i++) {
                        /*
                         * We add the fundamental frequencies together.