ilmClient: fixed memory leak in notification delivery
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Mon, 17 Dec 2012 14:01:33 +0000 (06:01 -0800)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Mon, 14 Jan 2013 08:34:16 +0000 (00:34 -0800)
Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
LayerManagerClient/ilmClient/src/generic_ilm_client.c

index a31a8b4..0f473d6 100644 (file)
@@ -318,8 +318,8 @@ void* notificationThreadLoop(void* param)
                 fprintf(stderr, "notification for surface %d received, but no callback set\n", id);
             }
         }
+        gIpcModule.destroyMessage(notification);
     }
-    gIpcModule.destroyMessage(notification);
     return NULL;
 }