Hi!

Read that e_object_del should be used instead of e_object_unref. These fixes should be right. The objects are created in the .c file, and deleted there.

Sebastian
Index: e/src/bin/e_module.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_module.c,v
retrieving revision 1.14
diff -u -r1.14 e_module.c
--- e/src/bin/e_module.c        8 Feb 2005 03:51:08 -0000       1.14
+++ e/src/bin/e_module.c        8 Feb 2005 11:32:22 -0000
@@ -7,7 +7,7 @@
 /* TODO List:
  * 
  * * add module types/classes
- * * add list of exclusions that a mdoule cant work with
+ * * add list of exclusions that a module cant work with
  * 
  */
 
@@ -66,9 +66,9 @@
        E_Module *m;
        
        m = _e_modules->data;
-       e_object_unref(E_OBJECT(m));
+       e_object_del(E_OBJECT(m));
      }
-   e_object_unref(E_OBJECT(_e_path_modules));
+   e_object_del(E_OBJECT(_e_path_modules));
    _e_path_modules = NULL;
    return 1;
 }
Index: e/src/bin/e_main.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_main.c,v
retrieving revision 1.44
diff -u -r1.44 e_main.c
--- e/src/bin/e_main.c  8 Feb 2005 03:51:08 -0000       1.44
+++ e/src/bin/e_main.c  8 Feb 2005 11:32:22 -0000
@@ -738,32 +738,32 @@
 {
    if (path_data)
      {
-       e_object_unref(E_OBJECT(path_data));
+       e_object_del(E_OBJECT(path_data));
        path_data = NULL;
      }
    if (path_images)
      {
-       e_object_unref(E_OBJECT(path_images));
+       e_object_del(E_OBJECT(path_images));
        path_images = NULL;
      }
    if (path_fonts)
      {
-       e_object_unref(E_OBJECT(path_fonts));
+       e_object_del(E_OBJECT(path_fonts));
        path_fonts = NULL;
      }
    if (path_themes)
      {
-       e_object_unref(E_OBJECT(path_themes));
+       e_object_del(E_OBJECT(path_themes));
        path_themes = NULL;
      }
    if (path_icons)
      {
-       e_object_unref(E_OBJECT(path_icons));
+       e_object_del(E_OBJECT(path_icons));
        path_icons = NULL;
      }
    if (path_init)
      {
-       e_object_unref(E_OBJECT(path_init));
+       e_object_del(E_OBJECT(path_init));
        path_init = NULL;
      }
    return 1;

Reply via email to