[Geany-Devel] [geany/geany-plugins] 4cc119: Scope: Fix mismatched allocator/deallocator

Dimitar Zhekov dimitar.zhekov at xxxxx
Thu Mar 7 19:06:27 UTC 2013


On Mon, 04 Mar 2013 22:30:40 -0000
Colomban Wendling <git-noreply at geany.org> wrote:

> Log Message:
> -----------
> Scope: Fix mismatched allocator/deallocator

These are not mismatched, I'm using strdup() instead of strdup() for
strings that must never be NULL. Unless we have a policy to always
use g_strdup(), or there is a real g_/strdup vs. g_/free mismatch
somewhere, I'm going to revert them.

Personally I prefer offensive programming: if something goes wrong, let
it crash and burn, get a proper backtrace and fix it.

-- 
E-gards: Jimmy


More information about the Devel mailing list