Style fixes for previous commit
authorJens Georg <jensg@openismus.com>
Sat, 15 Mar 2014 08:01:57 +0000 (09:01 +0100)
committerJens Georg <jensg@openismus.com>
Sat, 15 Mar 2014 08:01:57 +0000 (09:01 +0100)
Signed-off-by: Jens Georg <jensg@openismus.com>
libgssdp/gssdp-resource-browser.c

index 5aaa3d0..bd52f80 100644 (file)
@@ -749,13 +749,13 @@ resource_available (GSSDPResourceBrowser *resource_browser,
         if (resource) {
                 for (it1 = locations, it2 = resource->locations;
                      it1 && it2;
-                     it1 = it1->next, it2 = it2->next
-                ) {
-                        if (strcmp((const char *) it1->data,
-                            (const char *) it2->data) != 0
-                        ) {
-                               resource_unavailable(resource_browser, headers);
+                     it1 = it1->next, it2 = it2->next) {
+                        if (strcmp ((const char *) it1->data,
+                                    (const char *) it2->data) != 0) {
+                               resource_unavailable (resource_browser, headers);
+                               /* Will be destroyed by resource_unavailable */
                                resource = NULL;
+
                                break;
                         }
                 }