svace issue about uselessassignmentptrarg 76/235476/3
authorHyuntae Kim <ht1211.kim@samsung.com>
Fri, 5 Jun 2020 01:39:12 +0000 (10:39 +0900)
committerHyuntae Kim <ht1211.kim@samsung.com>
Fri, 5 Jun 2020 08:24:24 +0000 (17:24 +0900)
Change-Id: Ib2900fa73f9322752d36f6fd50f446596f3447c5

packaging/capi-media-camera.spec
src/camera.c

index da4294b..74df0a3 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-camera
 Summary:    A Camera API
-Version:    0.4.31
+Version:    0.4.32
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 16d1ae1..b958ac4 100644 (file)
@@ -1219,7 +1219,6 @@ static void _camera_media_packet_data_release(camera_media_packet_data *mp_data,
                _camera_msg_return_buffer(mp_data->ret_fd, cb_info);
 
                g_free(mp_data);
-               mp_data = NULL;
        }
 
        return;
@@ -1394,10 +1393,8 @@ static int _camera_media_packet_create(camera_cb_info_s *cb_info, camera_stream_
                        LOGE("media_packet_set_extra failed");
 
                        _camera_media_packet_data_release(mp_data, cb_info);
-                       mp_data = NULL;
 
                        media_packet_destroy(pkt);
-                       pkt = NULL;
                } else {
                        /* set timestamp : msec -> nsec */
                        if (media_packet_set_pts(pkt, (uint64_t)(stream->timestamp) * 1000000) != MEDIA_PACKET_ERROR_NONE)
@@ -2346,7 +2343,6 @@ static void _camera_client_callback_destroy(camera_cb_info_s *cb_info)
        cb_info->preview_cb_flag = 0;
 
        g_free(cb_info);
-       cb_info = NULL;
 
        return;
 }