Fix Prevent issue
authorZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Mon, 16 Sep 2013 07:56:26 +0000 (09:56 +0200)
committerHoseon LEE <hoseon46.lee@samsung.com>
Sun, 29 Sep 2013 08:09:14 +0000 (17:09 +0900)
[Issue#]   CID: 31582
[Problem]  Resource leak
[Cause]    Invalid condition
[Solution] Fix condition

[Verification] Build repository

Change-Id: I4d22559cc127a3e2380f072fb773c8830812cc48

src/view/common/scheme_action_map.cpp

index eee82e6..7bc46d3 100644 (file)
@@ -278,7 +278,7 @@ void handleUnknownScheme(const char* scheme, const char* uri)
     } else {
         // create service
         service_h serviceHandle = NULL;
-        if (SERVICE_ERROR_NONE != service_create(&serviceHandle)) {
+        if (SERVICE_ERROR_NONE == service_create(&serviceHandle)) {
             service_set_operation(serviceHandle, SERVICE_OPERATION_VIEW);
             service_set_uri(serviceHandle, uri);
             CONTROLLER_POST_EVENT(