Change the method for error return 21/141521/1 tizen_3.0
authorMyungki Lee <mk5004.lee@samsung.com>
Tue, 18 Jul 2017 11:48:57 +0000 (20:48 +0900)
committerSemun Lee <semun.lee@samsung.com>
Tue, 1 Aug 2017 02:33:10 +0000 (02:33 +0000)
- notification_status_message_post
  need to free for some resource

Change-Id: I8341720484913909d6ef91c7cf11409b9483aceb
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
(cherry picked from commit bbd3a76cb52113020ffa8c07ea97aac311482958)

src/notification_status.c

index 59428f63686734eb7e7cad6071b6b5c21db80a5c..19641e164325a2716d69d59a9a1c1a1a322400c6 100755 (executable)
@@ -171,7 +171,7 @@ int notification_status_message_post(const char *message)
                /* LCOV_EXCL_START */
                NOTIFICATION_ERR("g_dbus_connection_emit_signal() failed: %s",
                                        err->message);
-               return NOTIFICATION_ERROR_FROM_DBUS;
+               ret = NOTIFICATION_ERROR_FROM_DBUS;
                goto end;
                /* LCOV_EXCL_STOP */
        }
@@ -180,7 +180,7 @@ int notification_status_message_post(const char *message)
                /* LCOV_EXCL_START */
                NOTIFICATION_ERR("g_dbus_connection_flush_sync() failed: %s",
                                        err->message);
-               return NOTIFICATION_ERROR_FROM_DBUS;
+               ret = NOTIFICATION_ERROR_FROM_DBUS;
                goto end;
                /* LCOV_EXCL_STOP */
        }