Revision: 7317
Author:   nogu.dev
Date:     Sun Sep 18 23:31:33 2011
Log:      * uim/scim.cpp
  - (alloc_id): Plug leak.
http://code.google.com/p/uim/source/detail?r=7317

Modified:
 /trunk/uim/scim.cpp

=======================================
--- /trunk/uim/scim.cpp Sun May  1 04:18:01 2011
+++ /trunk/uim/scim.cpp Sun Sep 18 23:31:33 2011
@@ -326,6 +326,7 @@
     if ( uuid.empty() )
     {
         uim_notify_fatal( "uim-scim: failed to search uuid" );
+        delete context;
         return uim_scm_f();
     }
     context->factory = be->get_factory( uuid );
@@ -338,6 +339,7 @@
     if ( context->instance.null() )
     {
         uim_notify_fatal("uim-scim: failed to create IMEngineInstance");
+        delete context;
         return uim_scm_f();
     }

Reply via email to